Reputation: 189
Can I loop through elements of a Set
in Elm? Or at least convert the Set
to a List
?
There exists Set.fromList
, but I don't find any List.fromSet
or something similar.
I know there is no for loop in Elm, but I want to go through the elements recursively like I do in case of list:
interate lst =
case lst of
[] -> False
x::xs -> ...
but for a Set
.
Upvotes: 1
Views: 128