Last active
December 15, 2022 10:49
-
-
Save Munksgaard/f35769477104185bc529c7df43c80d75 to your computer and use it in GitHub Desktop.
Fun types counterexamples
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 (y: Int) = 42 | |
let (xss: [y][x]Int) = | |
kernel x <= y do | |
let (xs: [x]Int) = iota(x) | |
in (xs) | |
let (z: Int) = 42 | |
let (xs: [x]Int) = | |
if z then | |
let (x: Int) = 4 | |
let (xs: [x]Int) = iota(x) | |
in (xs) | |
else | |
let (x: Int) = 6 | |
let (xs: [x]Int) = iota(x) | |
in (xs) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment