Idris2/tests/idris2/interactive031/expected

8 lines
229 B
Plaintext
Raw Normal View History

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!