Associative array/Creation: Difference between revisions
J bugfix (and minor style change)
(J bugfix (and minor style change)) |
|||
Line 452:
=={{header|J}}==
<lang J> coclass 'assocArray'
create=: 3 :'
get=: ".
set=:4 :'(x)=:y'</lang>
Line 459:
Example use:
example=:
'foo' set__example 1 2 3
1 2 3
|