v0=. '.'&$: : (2&{.@(<;._1)@,) | Split y on x (on period for monad) |
m1=: (i.@# = i.~) # ] | Nub ~. |
n2=: a.{~65 97+/i.26 | A-Z, a-z |
m3=: <;._2@(,&':');._2 | UNIX /etc/passwd relation |
For example: |
v0 'filename.ext'
+------------+
¦filename¦ext¦
+------------+
';' v0 'filename;ext'
+------------+
¦filename¦ext¦
+------------+
The following illustrates miscellaneous matters, including multiple assignments: |
n=. 'psmith';(i.3 4);100 200 NB. assign local to explicit definition
n=: 'psmith';(i.3 4);100 200 NB. assign global
'a b c'=: n NB. assign single letter names
'one two three'=: n NB. assign names
'a b c'=: i.3 4 NB. assign rows of matrix
'a b c d'=: |:i.3 4 NB. assign cols of matrix
[x=: i.5 NB. assign and display result
v=: +:@*: NB. assign name to verb
([ v) i.5 NB. invoke verb, return argument
(;v) i.5 NB. invoke verb, return argument
NB. linked to result
|