Idris2/tests/idris2/interactive/interactive031/expected
2023-09-07 14:57:22 +01:00

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!