mirror of
https://github.com/edwinb/Idris2-boot.git
synced 2024-12-18 18:31:43 +03:00
11 lines
498 B
Plaintext
11 lines
498 B
Plaintext
1/1: Building Params (Params.idr)
|
|
Welcome to Idris 2 version 0.0. Enjoy yourself!
|
|
Main> Main.Dict : (a -> a -> Bool) -> Type -> Type
|
|
Main> Main.MkDict : (eq : (a -> a -> Bool)) -> List (a, b) -> Dict eq b
|
|
Main> Main.lookup : (a -> a -> Bool) -> a -> List (a, b) -> Maybe b
|
|
Main> Main.lookupK : (eq : (a -> a -> Bool)) -> a -> Dict eq b -> Maybe b
|
|
Main> MkDict (\{arg:0} => (\{arg:1} => (intToBool (prim__eq_Int arg arg)))) [(0, "foo"), (1, "bar")]
|
|
Main> Just "bar"
|
|
Main> Nothing
|
|
Main> Bye for now!
|