Skip to content

Instantly share code, notes, and snippets.

@raichoo
Created October 30, 2012 21:31
Show Gist options
  • Save raichoo/3983203 to your computer and use it in GitHub Desktop.
Save raichoo/3983203 to your computer and use it in GitHub Desktop.
Odd/Even List in Idris (with mutual block)
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