Skip to content

Instantly share code, notes, and snippets.

@KKostya
Created October 21, 2018 18:52
Show Gist options
  • Save KKostya/f9822b5f4eba30e1a1abd9d9d5c06ea2 to your computer and use it in GitHub Desktop.
Save KKostya/f9822b5f4eba30e1a1abd9d9d5c06ea2 to your computer and use it in GitHub Desktop.
type t = A | B | C
let sum = (f) => f(A) + f(B) + f(C)
instance( (f) => f(A) > 0 && f(B) > 0 && sum(f) == 42 )
Instance (after 0 steps, 0.011s):
let f = function
| C -> 40
| _ -> 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment