Navigation
Synopsis Convert a map to a list of tuples.
Function list[tuple[&K, &V]] toList(map[&K, &V] M)
Usage import Map;
Examples
rascal>import Map;
ok
rascal>toList(("apple": 1, "pear": 2, "orange": 3));
lrel[str,int]: [
  <"apple",1>,
  <"orange",3>,
  <"pear",2>
]
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.