Last active
March 1, 2017 19:48
-
-
Save pragmatrix/738f1a091e42e873dce547cdaa46d8cc 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
[<AutoOpen>] | |
module Prelude | |
let (^) = (<|) | |
type CR = CompilationRepresentationAttribute | |
let [<Literal>] ModuleSuffix = CompilationRepresentationFlags.ModuleSuffix | |
type RQA = RequireQualifiedAccessAttribute | |
let inline flip f a b = f b a | |
let inline curry f a b = f(a, b) | |
let inline uncurry f (a, b) = f a b | |
let inline expect expected seen = | |
if expected <> seen then | |
failwithf "internal error, unexpected state, expected %A, but seen %A" expected seen |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment