« first day (530 days earlier)      last day (1433 days later) » 

12:18 AM
TIL you can do Python-style decorators in Haskell, kinda
For example (flip -> f) = \x y -> x - y
 
 
5 hours later…
5:41 AM
@EsolangingFruit I don't quite get what you are trying to convey here. Is that meant to be a view pattern or something from pyhon on the left of the equals?
 
5:59 AM
@Potato44 In Python, the following code:
@dec
def foo(): ...
is equivalent to
def foo(): ...
foo = dec(foo)
Similarly, (dec -> f) = ... in Haskell is equivalent to f = dec (...).
It's just a syntactical thing.
 
@EsolangingFruit That is quite an interesting use of view patterns, I never thought of using them anywhere but in function arguments.
 
 
14 hours later…
8:26 PM
@EsolangingFruit how exactly is this supposed to work? (I tried it in ghci but got an error?)
 
@flawr Try with -XViewPatterns
Also, I see what it does, but it isn't readable for me
 
Oh I see
Wow there are so many cool extensiosn
 

« first day (530 days earlier)      last day (1433 days later) »