Array notation: Difference between revisions

Jump to navigation Jump to search
177 bytes added ,  10:42, 22 August 2022
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> || {{No}}               ||
| [[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 ==

Navigation menu