mirror of
https://github.com/edwinb/Idris2-boot.git
synced 2024-12-19 10:51:35 +03:00
d053a18977
Make sure this is the counter from the right namespace, or we might get name clashes at the REPL
13 lines
276 B
Idris
13 lines
276 B
Idris
import Stuff
|
|
|
|
foo : Int -> Maybe Int
|
|
foo 0 = Nothing
|
|
foo x = Just (prim__mul_Int x 2)
|
|
|
|
testLet : Int -> Int
|
|
testLet x = let y = prim__mul_Int x 2
|
|
Just ans = foo y
|
|
| Nothing => 99
|
|
z = prim__mul_Int ans 2
|
|
in z
|