oispakaljaa
Joined 3 years ago
Karma
16
Submissions
8
Member since
Jun 16
Joined 3 years ago
42 + sum(print(0) for print in [lambda x: x])Haskell base already has the reverse application operator (&) which does the same thing. Not included in the prelude but can be imported from Data.Function. [1] It's defined as:
(&) :: a -> (a -> b) -> b
x & f = f x
Not that there's anything wrong with using your own definitions, just thought I'd point it out![1] https://hackage.haskell.org/package/base-4.18.1.0/docs/Data-...