Created
October 30, 2012 21:31
-
-
Save raichoo/3983203 to your computer and use it in GitHub Desktop.
Odd/Even List in Idris (with mutual block)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mutual | |
namespace Even | |
data EvenList : Set where | |
Nil : EvenList | |
(::) : Nat -> OddList -> EvenList | |
namespace Odd | |
data OddList : Set where | |
(::) : Nat -> EvenList -> OddList | |
test : OddList | |
test = [1,2,3] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment