RosettaCodeData/Task/Enumerations/J/enumerations-1.j

5 lines
95 B
Plaintext

enum =: cocreate''
( (;:'apple banana cherry') ,L:0 '__enum' ) =: i. 3
cherry__enum
2