mirror of
https://github.com/idris-lang/Idris2.git
synced 2024-12-13 17:25:29 +03:00
8 lines
229 B
Plaintext
8 lines
229 B
Plaintext
1/1: Building Signatures (Signatures.idr)
|
|
Main> mapTree1 f Nil1 = Nil1
|
|
mapTree1 f (Node1 x y z) = Node1 (f x) (mapTree1 f z) (mapTree1 f y)
|
|
Main> mapTree2 f Nil2 = Nil2
|
|
mapTree2 f (Node2 x y) = Node2 (f x) []
|
|
Main>
|
|
Bye for now!
|