Navigation
Synopsis A value that cannot be enumerated is used in an enumerator.
Description A Rascal:Enumerator like int n <- V is used in Rascal:Comprehensions to enumerate the values in V. This error is produced when V is a value that does not support enumeration. This is typically the case for atomic values like numbers, Booleans and Strings,

Remedy: modify the expression in the enumerator to return a value that supports enumeration.
Examples
rascal>int x <- 17
|stdin:///|(9,2,<1,9>,<1,11>): int is not enumerable
rascal>b <- true
|stdin:///|(5,4,<1,5>,<1,9>): bool is not enumerable
Is this page unclear, or have you spotted an error? Please add a comment below and help us to improve it. For all other questions and remarks, visit ask.rascal-mpl.org.