Navigation
Synopsis Map set elements to a fixed index.
Function map[&T,int] index(set[&T] s)
Usage import Set;
Examples
rascal>import Set;
ok
rascal>index({"elephant", "zebra", "snake"});
map[str, int]: ("snake":2,"zebra":1,"elephant":0)

Questions
Question [1].
The type of index({2, -20, 13}) is



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.