|
gonadic io posted:(.|.) for Bools I read that 3 times over wondering why Haskell had a Boobs operator.
|
# ¿ Jun 25, 2015 18:35 |
|
|
# ¿ Apr 29, 2024 14:07 |
|
Your best bet is probably to pick a bunch of good articles and save them for offline reading (can be done in most mainstream browsers). I'd start with everything on this page: http://fsharpforfunandprofit.com/site-contents/
|
# ¿ Aug 3, 2015 03:03 |
|
VikingofRock posted:Same here. I've never really had any desire to do web stuff, but fart simpson's elm posts make it look so slick. As long as you stick to Elm's primary use case (UI FRP), then most of your code will look slick. We used elm-svg to make cool data visualizations with animations and all the jazz that people would normally use D3.js for, but without the lovely selector-based programming that the D3 API requires.
|
# ¿ Dec 17, 2015 21:22 |
|
I don't think the compiler message is terribly helpful here (I feel like it should be saying the left argument is B, but I could be wrong). However, your fold isn't correct for a tree. You're calling (partial left) and (partial right) which uses the same accumulator (which is a problem) and returns a value of type B. You then try to feed two Bs into a function of type (A -> B -> B). I think you want your final let..in clause to be something like: code:
edit: beaten by a mile. Bognar fucked around with this message at 21:13 on Dec 31, 2015 |
# ¿ Dec 31, 2015 21:02 |
|
My coworker uses Emacs with the Haskell thingy and it seems to work pretty well. I wouldn't call it an IDE per se, but it has syntax highlighting, indentation, and some options for quickly executing your code. Then again, you'd have to use Emacs.
|
# ¿ Mar 15, 2016 15:20 |
|
Walh Hara posted:I honestly have no idea if these posts about using a Linux VM are sarcastic or not. Neither do I, but I use a linux VM to write Rust so
|
# ¿ Mar 16, 2016 14:41 |
|
Jarl posted:I get applicative functors now, but it sure took some effort. With that in mind should I prepare myself for a long haul with monoids and monads, or am I already almost there conceptually having understood applicative functors? Monoids are easy and, despite the name, they have nothing to do with monads in general (some specific monads have a monoid constraint). Monads aren't significantly harder to understand than Functors or Applicatives, but it might take you a while to grasp the "why" of using them. It took me quite a while at least.
|
# ¿ Apr 19, 2016 15:37 |
|
Elm just switched their model from using signals, addresses, and ports to a unifying model of "subscriptions". At first glance it seems pretty promising: http://elm-lang.org/blog/farewell-to-frp
|
# ¿ May 10, 2016 18:35 |
|
Arcsech posted:The [1..5] syntax was nice, but I'm not too put out by losing it. Backticks I could go either way on, I can definitely see the simplicity of just encouraging |>. They made a pretty big breaking change, though, to encourage use of |>. (x `andThen` y) translates to (andThen x y), but (x |> andThen y) translates to (andThen y x). They had to flip the argument order of andThen to support this change, which I think is pretty bold. e: luckily the argument types are incompatible, so it's not possible to compile code that was broken this way. Bognar fucked around with this message at 20:50 on Nov 15, 2016 |
# ¿ Nov 15, 2016 20:46 |
|
|
# ¿ Apr 29, 2024 14:07 |
|
EmmyOk posted:Okay that's starting to make a lot of sense to me. Is prefixer just a reference to the original function or a copy? I'm wondering because it seems like prefix' is still available to prefixer which is a string originally from the first-order function. It's best to think of it as a new function that was built during the calculatePrefixFunction method. Yes, prefix' is still available to the prefix function (this is commonly known as "closing" over a variable, see wikipedia). How it *actually* works is heavily dependent on your language implementation, but the semantics should be the same as if you just created a new function. It might also help to look at a similar example with numbers: code:
code:
|
# ¿ Jan 17, 2017 19:55 |