Skip to content

Instantly share code, notes, and snippets.

@kunigami
Last active March 19, 2017 01:18
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 kunigami/74bcbe3ce89b38430a80203c777e83ad to your computer and use it in GitHub Desktop.
Save kunigami/74bcbe3ce89b38430a80203c777e83ad to your computer and use it in GitHub Desktop.
let push (elem: 'a) (queue: 'a queueStream): ('a queueStream) = match queue with
(frontSize, front, rearSize, rear) ->
check (frontSize, front, rearSize + 1, Stream2.insert elem rear)
;;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment