[RubenVerg] I'm struggling to convert this line of Haskell code into Scala, could anybody help me? iota = foldr (liftA2 (:) . enumFromTo 1) [[]]
this function basically creates a flat list containing all multidimensional indices generated by the input list, APL style