mirror of
https://github.com/wader/fq.git
synced 2024-12-27 15:42:07 +03:00
27 lines
387 B
Plaintext
27 lines
387 B
Plaintext
|
$ fq -i
|
||
|
null> 1+1
|
||
|
2
|
||
|
null> (
|
||
|
error: src:1:2: unexpected token <EOF>
|
||
|
null> abc
|
||
|
error: src:1:0: function not defined: abc/0
|
||
|
null> 1+"a"
|
||
|
error: cannot add: number (1) and string ("a")
|
||
|
null> 1 | repl
|
||
|
> number> .+1
|
||
|
2
|
||
|
> number> ^D
|
||
|
null> [1,2,3] | repl({}; .[])
|
||
|
> number, ...> .
|
||
|
1
|
||
|
2
|
||
|
3
|
||
|
> number, ...> ^D
|
||
|
null> [] | repl({}; .[])
|
||
|
> empty> 1
|
||
|
> empty> ^D
|
||
|
null> ^D
|
||
|
$ fq -i 'empty'
|
||
|
empty> 1
|
||
|
empty> ^D
|