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.43 or later.

NushellClojureTablecloth (Ocaml / Elm)Haskell
alias
appendconj, into, concatappend, (++), concat, concatMap(++)
args
autoview
math avg
into binaryInteger/toHexStringshowHex
calc, <math expression>math operators
cd
clear
clip
compact
config
countcountlength, sizelength, size
cp
datejava.time.LocalDate/now
debug
default
drop
du
eachmap, mapv, iteratemap, forEachmap, mapM
echoprintlnputStrLn, print
enter
exitSystem/exit
fetch()
firstfirstheadhead
formatformatText.Printf.printf
from
get
group-bygroup-bygroup, groupBy
headers
helpdoc
histogram
history
inc()incsucc
insert
empty?empty?isEmpty
keeptake, drop-last, poptake, inittake, init
keep-until
keep-whiletake-whiletakeWhiletakeWhile
kill
lastlast, peek, take-lastlastlast
lineslines, words, split-with
ls
match()re-matches, re-seq, re-find
merge
mkdir
mv
next
nthnthArray.getlookup
openwith-open
parse
transpose(apply mapv vector matrix)transpose
post()
prependconscons, ::::
prev
ps
pwd
range, 1..10rangerange1..10, ‘a’..’f’
reducereduce, reduce-kvfoldrfoldr
reject
rename
reversereverse, rseqreverse, reverseInPlacereverse
rm
save
selectselect-keys
shells
shuffleshuffle
sizecountsize, length
skipresttailtail
skip until
skip whiledrop-whiledropWhiledropWhile, dropWhileEnd
sort-bysort, sort-by, sorted-set-bysort, sortBy, sortWithsort, sortBy
split-bysplit, split-{at,with,lines}split, words, linessplit, words, lines
split column
split row
str()clojure.string functionsString functions
str collectjoinconcatintercalate
str trimtrim, triml, trimrtrim, trimLeft, trimRightstrip
sumapply +sumsum
sys
table
tags
tree()
to
touch
uniqsetSet.emptyData.Set
upsert
version
with_env
what
wherefilter, filterv, selectfilter, filterMapfilter
which
wrap
  • * - these commands are part of the standard plugins