Closed mgold closed 8 years ago
It would be helpful to have this function:
cross : List a -> List b -> List (a,b) cross [1,2,3] ["a", "b"] = [(1, "a"), (1, "b"), (2, "a"), (2, "b"), (2, "a"), (2, "b")]
The use case I have in mind is getting a list of grid intersections, e.g. cross [0..m] [0..m].
cross [0..m] [0..m]
That's just lift2 (,) with the function lift2 already in this package. Is it really worth an extra function?
lift2 (,)
lift2
Nope, although a documentation comment might be nice :)
It would be helpful to have this function:
The use case I have in mind is getting a list of grid intersections, e.g.
cross [0..m] [0..m]
.