Enumerate - kevinlawler/kona GitHub Wiki
!x x:int
is the enumeration of an int atom, i.e., the ints n where 0 <= n < x.
!0 !0 !10 0 1 2 3 4 5 6 7 8 9 !15 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14
!x x:int_vector
is odometer.
!2 3 (0 0 0 1 0 2 1 0 1 1 1 2)
!x x:char
enumerates the files in the directory x: the output from "ls (x)".
!"/" ("altroot" "bak" "bin" "boot" "bsd" "bsd.rd" "bsd.sp" "dev" "etc" "home" "mnt" "proc" "root" "sbin" "share" "sys" "tmp" "usr" "var" "vc")
!x x:dict
enumerates the key in a dictionary.
d:.() .() d.foo:23 23 d.bar:!10 0 1 2 3 4 5 6 7 8 9 d .((`foo;23;) (`bar 0 1 2 3 4 5 6 7 8 9 )) !d `foo `bar