Why does | need to be in parenthesis when used a reverse (monad function)
(|) 3 2 1 /works
/ do not work
| 3 2 1
|[(3;2;1)]
Why does | need to be in parenthesis when used a reverse (monad function)
(|) 3 2 1 /works
/ do not work
| 3 2 1
|[(3;2;1)]
because you’re programming in q. q replaces all monadic verbs with reserved words
| reverse
..
you can access k mode by prefixing your expression with k):
q)k)|3 2 1
1 2 3
or use \ to toggle k mode
q)\
|3 2 1
1 2 3
i haven’t looked into exactly what () permits in q, but it includes term-adverbs (tA) pairs.