Last active
March 19, 2017 01:18
-
-
Save kunigami/74bcbe3ce89b38430a80203c777e83ad to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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