This commit is contained in:
Michiel Borkent 2019-08-09 17:41:33 +02:00
parent 6c2e2d6426
commit 026f911be2

View file

@ -68,8 +68,8 @@ Functions are written using the reader tag `#bb/fn`. Currently up to three
arguments are supported. arguments are supported.
``` shellsession ``` shellsession
$ echo '' | bb '(#bb/fn (+ %1 %2) 1 2)' $ echo '3' | bb '(#bb/fn (+ %1 %2 %3) 1 2 *in*)'
3 6
$ ls | bb --raw '*in*' | bb '(filterv #bb/fn (re-find (re-pattern "reflection") %) *in*)' $ ls | bb --raw '*in*' | bb '(filterv #bb/fn (re-find (re-pattern "reflection") %) *in*)'
["reflection.json"] ["reflection.json"]