APLX Help : Help on APL language : APL Primitives : ∊ Enlist




Oneargument form See also twoargument form Membership Enlist produces a vector containing every element from every item in its argument. None of the properties of an array are preserved A←(1 2 3) 'ABC' (4 5 6) ⍴A (Length 3 vector containing 3 length 3 3 vectors) ⍴∊A (Enlist produces one 9 element vector) 9 B←2 2⍴(2 2⍴⍳4) 'DEF' (2 3⍴⍳6) (7 8 9) B 1 2 DEF 3 4 1 2 3 7 8 9 4 5 6 ⍴B 2 2 ∊B (Enlist produces a 16 element vector, 1 2 3 4 DEF 1 2 3 4 5 6 7 8 9 processing the rows first  as ravel) ⍴∊B 16 For simple arguments, enlist is the equivalent of the ravel (,) function. Enlist can be used for selective specification. (∊A)←⍳9 (A as above) A 1 2 3 4 5 6 7 8 9 ⍴A (Shape preserved) 3 

APLX Help : Help on APL language : APL Primitives : ∊ Enlist

Copyright © 19962010 MicroAPL Ltd