4,577
edits
Line 3: | Line 3: | ||
== Examples == | == Examples == | ||
Link implements <source lang=apl inline>{(⊂⍺),⊆⍵}</source>, that is, the [[catenate|concatenation]] of [[enclose]] of the left argument and [[nest]] (enclose if simple) of the right argument. This allows to chain the function over multiple arrays to form a nested array. Note that both [[SHARP APL]] and [[J]] use [[flat array model]], so they allow boxing of a [[simple scalar]]. | Link implements <source lang=apl inline>{(⊂⍺),⊆⍵}</source> or <source lang=apl inline>,⍨∘⊂⍨∘⊆</source>, that is, the [[catenate|concatenation]] of [[enclose]] of the left argument and [[nest]] (enclose if simple) of the right argument. This allows to chain the function over multiple arrays to form a nested array. Note that both [[SHARP APL]] and [[J]] use [[flat array model]], so they allow boxing of a [[simple scalar]]. | ||
<source lang=apl> | <source lang=apl> |