Ryan Benasutti
08/11/2019, 7:18 PMListK.applicative()
and tupled(listA.k(), listB.k()
, I can generate all `Tuple2`'s with the elements in both lists. If I give more arguments to tupled
, then I get a Tuple3
, etc. Is there a way to give more arguments to a method like tupled
but still only get a Tuple2
out? I want to get all the pairs of elements between n lists.raulraja
08/12/2019, 5:15 PMraulraja
08/12/2019, 5:16 PMraulraja
08/12/2019, 5:17 PMraulraja
08/12/2019, 5:18 PMfun <A, B, C> unknown(la: List<A>, lb: List<B>, lc: List<C>): List<Tuple2<?, ?> = TODO()
Ryan Benasutti
08/12/2019, 5:32 PMfun <A> tupled(a: List<A>, b: List<A>, c: List<A>): List<Tuple2<A, A>> = TODO()
All the pairs of a
and b
, all the pairs of b
and c
, and all the pairs of a
and c
.