Skip to content

Instantly share code, notes, and snippets.

@deque-blog
Created July 28, 2017 12:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save deque-blog/0f914242b7a368da0353dd3c3af3ff64 to your computer and use it in GitHub Desktop.
Save deque-blog/0f914242b7a368da0353dd3c3af3ff64 to your computer and use it in GitHub Desktop.
statefulTransducer : s' -> (Step s acc b -> Step s (s', acc) a) -> Transducer acc s (s', s) a b
statefulTransducer initState stepTf = makeTransducer initState stepTf onComplete
where
onComplete next _ acc = pure acc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment