b0oh / elm-do / Do.List

This library extends List from elm-core with do function

do : List a -> (a -> List b) -> List b

import Do.List as List

List.do [1, 2, 3] <| \x ->
List.do [1, 2, 3] <| \y ->
[[ x, y ]]  -- [[1,1],[1,2],[1,3],[2,1],[2,2],[2,3],[3,1],[3,2],[3,3]]