Created
March 18, 2017 20:54
-
-
Save kunigami/d18f44127e04d4b26c2afcaab916cb8d 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 conformToForcedFrontInvariant ( | |
queue: 'a queueSuspended | |
): ('a queueSuspended) = match queue with | |
| ([], frontSize, lazyFront, rearSize, rear) -> | |
(Lazy.force lazyFront, frontSize, lazyFront, rearSize, rear) | |
| queue -> queue | |
;; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment