Next: , Previous: , Up: Arrays   [Contents][Index]


14.4.7 Array Elements

The in operator can be used to determine whether a given element is stored in an array. Examples:

(poke) 2 in [1,2,3]
1
(poke) 10#B in [2#b,10*8#b,3#b]
1
(poke) 30#B in [2#b,10*8#b,3#b]
0