at

From The K Language Wiki
Revision as of 21:59, 6 July 2021 by Ngn (talk | contribs) (Created page with "{{primitive}} '''At''' is a primitive that unifies list indexing, function application, and dictionary lookup into a single concept. Syntactically, it can be expressed in thre...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
At
{{{1}}}

At is a primitive that unifies list indexing, function application, and dictionary lookup into a single concept. Syntactically, it can be expressed in three equivalent ways: x@y (using `@` as a verb), x y (juxtaposition of nouns), and x[y] (M-expression).

 "abc"[1]
"b"
 {1+2*x}@3
7
 (`a`b!0 1)`b
1