|
"Learn You a Haskell" mostly worked for me with a few notable gaps. "Learn You Some Erlang" felt like it took a similar approach but brought me up to speed much more quickly and completely. Possibly because I went into Haskell before Erlang, though.
|
# ¿ Jun 19, 2015 14:32 |
|
|
# ¿ May 1, 2024 23:58 |
|
Is there a good, offline resource for learning F#? I spend a lot of time without internet and there's no "Learn you an F#" for me to lean on.
|
# ¿ Aug 3, 2015 02:56 |
|
For Markov chain generation, am I incorrect in assuming it would basically use map / filter to create and clean tokens, then a reduce to boil down the list of tokens to a dictionary of Tokens mapped to tuples of weight and tokens? I've been meaning to make a reusable one for a long time and want to use it as an excuse to further practice F#.
|
# ¿ Mar 25, 2017 18:43 |
|
baka kaba posted:I made one in F# (that was probably bad) that basically created a sequence of tokens, used windowed and map to create pairs in tuples, and then folded those into an empty Map. The folding function looked up Token1 in the map, which returned another map of all the following tokens and their counts. Then it checked that for Token2 and either incremented its count or added it as a new entry. Then after the fold it did a map converting all those counts to normalised weights At this moment I'm not interested in being true doom functional, but the siren's song of parallel programming is always alluring.
|
# ¿ Mar 25, 2017 21:30 |