Just want to mention that this comes from the concept of a fold/reduce in functional programming. For example, in F#, you could process a stream of messages using fold:
fold
let msgs = [ NextTurn; NextTurn; Restart; NextTurn; NextTurn ] let initialModel = init () let finalModel = Seq.fold (fun model msg -> update msg model) initialModel msgs printfn "%A" finalModel
Love it. I think you can put fs after the triple apostrophes to get F# syntax highlighting there.
fs
And yes, I'm doing a ton of F# programming recently, which inspired the post on reducers at large.
Thanks. I actually had to use “fsharp” to trigger syntax highlighting.
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Just want to mention that this comes from the concept of a fold/reduce in functional programming. For example, in F#, you could process a stream of messages using
fold
:Love it. I think you can put
fs
after the triple apostrophes to get F# syntax highlighting there.And yes, I'm doing a ton of F# programming recently, which inspired the post on reducers at large.
Thanks. I actually had to use “fsharp” to trigger syntax highlighting.