Conversation
Notices
-
here should be a way of using fold to wrap up partial application of a function. So you can apply a function of multiple variables to a LIST of values.
:t fromGregorian:: Integer -> Int -> Int -> Day
fromGregorian 2019 02 08 = 2019-02-08
someFoldMagic fromGregorian [2019, 02, 08] ...
-
hmm oh noes!! not the infinite type :-( https://indy.im/attachment/102574
-
Turns out someone asked this question a few years ago, and there wasn't any awesome answers thenĀ https://mail.haskell.org/pipermail/haskell-cafe/2009-October/067254.html
-
Also, I have decided it's a silly idea because elements of a list all have to have the same type.
and also in Haskell lists are infinite, so that is probably causing the interpreter to barf working out the intermediate types.
Maybe it would work in something with a Vect n type in Idris