Skip to content

Instantly share code, notes, and snippets.

@pragmatrix
Last active March 1, 2017 19:48
Show Gist options
  • Save pragmatrix/738f1a091e42e873dce547cdaa46d8cc to your computer and use it in GitHub Desktop.
Save pragmatrix/738f1a091e42e873dce547cdaa46d8cc to your computer and use it in GitHub Desktop.
[<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