mirror of
https://github.com/wader/fq.git
synced 2024-12-03 13:46:37 +03:00
00ee10a1a1
Before if you did toactual it behaved differently and even gave error for a scalar that only had actual value set. Now both to{actal,sym} works similar to tovalue but will force if actual or sym value should be used.
39 lines
1.2 KiB
Cheetah
39 lines
1.2 KiB
Cheetah
$ CMD
|
|
PROMPT> EXPR | ., tovalue, toactual, tosym, type, length?
|
|
PROMPT> EXPR[0] | ., type, length?
|
|
PROMPT> EXPR[-1000] | ., type, length?
|
|
PROMPT> EXPR[1000] | ., type, length?
|
|
PROMPT> EXPR[1:3] | ., type, length?
|
|
PROMPT> EXPR[0:-1] | ., type, length?
|
|
PROMPT> EXPR[-1000:2000] | ., type, length?
|
|
PROMPT> EXPR["test"] | ., type, length?
|
|
PROMPT> [EXPR[]] | type, length?
|
|
PROMPT> EXPR | keys
|
|
PROMPT> EXPR | has("a")
|
|
PROMPT> EXPR | has(0)
|
|
PROMPT> EXPR | type
|
|
PROMPT> EXPR | tonumber
|
|
PROMPT> EXPR | tostring
|
|
PROMPT> EXPR + ""
|
|
PROMPT> EXPR + 1
|
|
PROMPT> EXPR._start | ., type, length?
|
|
PROMPT> EXPR._stop | ., type, length?
|
|
PROMPT> EXPR._len | ., type, length?
|
|
PROMPT> EXPR._name | ., type, length?
|
|
PROMPT> EXPR._actual | ., type, length?
|
|
PROMPT> EXPR._sym | ., type, length?
|
|
PROMPT> EXPR._description | ., type, length?
|
|
PROMPT> EXPR._path | ., type, length?
|
|
PROMPT> EXPR._bits | ., type, length?
|
|
PROMPT> EXPR._bytes | ., type, length?
|
|
PROMPT> EXPR._error | ., type, length?
|
|
PROMPT> EXPR._unknown | ., type, length?
|
|
PROMPT> EXPR.a = 1
|
|
PROMPT> EXPR[0] = 1
|
|
PROMPT> EXPR.a |= empty
|
|
PROMPT> EXPR[0] |= empty
|
|
PROMPT> EXPR | setpath(["a"]; 1)
|
|
PROMPT> EXPR | setpath([0]; 1)
|
|
PROMPT> EXPR | delpaths([["a"]])
|
|
PROMPT> EXPR | delpaths([[0]])
|
|
PROMPT> ^D |