4,494
edits
m (→History) |
|||
Line 63: | Line 63: | ||
| [[BQN]] || <code>⟨⋄⟩</code> || <code>[⋄]</code> || <code>{key⇐val⋄}</code> || {{Maybe|First-class}} || {{Yes}} | | [[BQN]] || <code>⟨⋄⟩</code> || <code>[⋄]</code> || <code>{key⇐val⋄}</code> || {{Maybe|First-class}} || {{Yes}} | ||
|- | |- | ||
| [[Dyalog]] (proposed) || <code>(⋄)</code> || <code>[⋄]</code> || <code>(key:val⋄)</code> || {{ | | [[Dyalog]] (proposed) || <code>(⋄)</code> || <code>[⋄]</code> || <code>(key:val⋄)</code> || {{Maybe|Indirect}} || {{Yes}} | ||
|} | |} | ||
"First class" indicates that functions are first class, so that an array of functions can be formed directly; in Nial and dzaima/APL function arrays are a special form that can be applied to arguments to return a list of results. BQN's namespaces don't use a dedicated construction; instead, any block (like a [[dfn]]) with <code>⇐</code> statements returns a namespace reference. | "First class" indicates that functions are first class, so that an array of functions can be formed directly; in Nial and dzaima/APL function arrays are a special form that can be applied to arguments to return a list of results. BQN's namespaces don't use a dedicated construction; instead, any block (like a [[dfn]]) with <code>⇐</code> statements returns a namespace reference. | ||
"Indirect" indicates that a function array can be produced by taking a member of an array of namespaces that all contain that member, each with its own function value. | |||
== External links == | == External links == |