Open amtoine opened 3 months ago
ls | nu_plugin_explore
t
this boils down to the fact that, in Nushell, $table | transpose | transpose and $record | transpose | transpose are not the same as table and $record respectively, you'd have to define inverse commands such as
$table | transpose | transpose
$record | transpose | transpose
table
$record
use std assert def "transpose inv-record" []: { transpose --header-row | into record } def "transpose inv-table" []: { transpose --header-row } assert equal ($nu | transpose | transpose inv-record) $nu assert equal (ls | transpose | transpose inv-table) (ls)
t
to transpose the tablet
again, nothing happensthis boils down to the fact that, in Nushell,
$table | transpose | transpose
and$record | transpose | transpose
are not the same astable
and$record
respectively, you'd have to define inverse commands such as