|
A couple of tips, for future reference:Snak posted:
You can write this as just x `elem` r. Snak posted:
If I'm not mistaken, this is a much simpler way to do the same thing: code:
|
# ¿ Nov 18, 2015 17:04 |
|
|
# ¿ May 3, 2024 22:11 |
|
Asymmetrikon posted:I like Idris over Haskell because of some of the historical weirdness it got rid of (switching : and ::, returning Maybe instead of erroring in, i.e., List access functions, the whole Monad/Applicative thing, Int vs. Integer.) I haven't looked too much into GHC 8, though. Applicative has been a superclass of Monad since GHC 7.10. The duplicate functions like return/pure and (>>)/(*>) are still there though, and I guess they'll probably never go away.
|
# ¿ Sep 3, 2016 13:05 |
|
If you like functional programming you might enjoy using React with Flux/Redux (persistent change tracking) and RxJS (FRP-ish). If you prefer Angular 2 you can have static types with TypeScript, and you can use RxJS and/or Redux there as well. Keep in mind that there are always a million alternatives to every library though. Webdev still kind of sucks but it's come a long way.
|
# ¿ Nov 27, 2016 23:56 |