[ case study: that Hamlet cliché ]
To be, or not to be: that is the question:
C:
q = to ? be : !be;
Haskell:
q = or [to be, (not . to) be]
… and so on.
[ case study: that Hamlet cliché ]
To be, or not to be: that is the question:
C:
q = to ? be : !be;
Haskell:
q = or [to be, (not . to) be]
… and so on.
Comments (5)
2B||!2B
… sigur, asta a evoluat inevitabil în stilul Sinatra: do be do be do.
TB or not TB? It’s never lupus!
Why not
q = or [id, not] [to be]
În ghci :m +Control.Applicative
Replace with:
q = or $ [id, not] <*> [to be]