# Nu map from functional languages

The idea behind this table is to help you understand how Nu built-ins and plug-ins relate to functional languages. We've tried to produce a map of all the Nu commands and what their equivalents are in other languages. Contributions are welcome.

Note: this table assumes Nu 0.14.1 or later.

Nushell Clojure Tablecloth (Ocaml / Elm) Haskell
alias
append conj, into, concat append, (++), concat, concatMap (++)
args
autoview
average(*)
binaryview(*) Integer/toHexString showHex
calc, = math math operators
cd
clear
clip
compact
config
count count length, size length, size
cp
date java.time.LocalDate/now
debug
default
drop
du
each map, mapv, iterate map, forEach map
echo println putStrLn, print
enter
evaluate_by
exit System/exit
fetch(*)
first first head head
format format Text.Printf.printf
from
get
grep filter, filterv, select filter, filterMap filter
group_by group-by group, groupBy
headers
help doc
histogram
history
inc(*) inc succ
insert
is_empty empty? isEmpty
keep take, drop-last, pop take, init take, init
keep_until
keep_while take-while takeWhile takeWhile
kill
last last, peek, take-last last last
lines lines, words, split-with
ls
map_max_by
match(*) re-matches, re-seq, re-find
merge
mkdir
mv
next
nth nth Array.get lookup
open with-open
parse
pivot, =transpose (apply mapv vector matrix) transpose
post(*)
prepend cons cons, :: ::
prev
ps(*)
pwd
range range range 1..10, 'a'..'f'
reduce_by reduce, reduce-kv foldr foldr
reject
rename
reverse reverse, rseq reverse, reverseInPlace reverse
rm
save
select(***) select-keys
shells
shuffle shuffle
size count size, length
skip rest tail tail
skip_until
skip_while drop-while dropWhile dropWhile, dropWhileEnd
sort-by sort, sort-by, sorted-set-by sort, sortBy, sortWith sort, sortBy
split_by split, split-{at,with,lines} split, words, lines split, words, lines
split_column
split_row
str(*) clojure.string functions String functions
sum apply + sum sum
sys(*)
table
tags
textview(*)
tree(*)
to
touch
trim trim, triml, trimr trim, trimLeft, trimRight strip
uniq set Set.empty Data.Set
update(**)
version
with_env
what
where filter, filterv, select filter, filterMap filter
which
wrap
  • * - these commands are part of the standard plugins
  • ** - renamed from edit to update in 0.13.1
  • *** - renamed from pick to select in 0.13.1