Skip to content

Instantly share code, notes, and snippets.

@vasily-kirichenko
Created November 14, 2012 18:07
Show Gist options
  • Save vasily-kirichenko/4073726 to your computer and use it in GitHub Desktop.
Save vasily-kirichenko/4073726 to your computer and use it in GitHub Desktop.
F#
type StatefulFunc<'state, 'result> = StatefulFunc of ('state -> 'result * 'state)
let Run (StatefulFunc f) initialState = f initialState
// what the hell (StatefulFunc f) means here?..
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment