4,500
edits
Line 45: | Line 45: | ||
In other dialects, a leading axis membership function can be defined as: | In other dialects, a leading axis membership function can be defined as: | ||
<source lang=apl> | <source lang=apl> | ||
Membership←{(≢⍵)≥⍵⍳⍺} | |||
⎕←mat←3 4⍴'ableacreidle' | ⎕←mat←3 4⍴'ableacreidle' | ||
able | able | ||
acre | acre | ||
idle | idle | ||
'able' | 'able' Membership mat | ||
1 | 1 | ||
</source>{{Works in|[[Dyalog APL]], [[NARS2000]], [[dzaima/APL]], [[Extended Dyalog APL]], [[GNU APL]]}} | </source>{{Works in|[[Dyalog APL]], [[NARS2000]], [[dzaima/APL]], [[Extended Dyalog APL]], [[GNU APL]]}} |