Mercurial > hg > Papers > 2018 > nozomi-master
annotate paper/src/AgdaStack.agda @ 116:ed6719c301fc
Update slide
author | atton <atton@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 13 Feb 2017 17:31:45 +0900 |
parents | c0693ad89f04 |
children |
rev | line source |
---|---|
65 | 1 data Element (a : Set) : Set where |
2 cons : a -> Maybe (Element a) -> Element a | |
3 | |
4 datum : {a : Set} -> Element a -> a | |
5 datum (cons a _) = a | |
6 | |
7 next : {a : Set} -> Element a -> Maybe (Element a) | |
8 next (cons _ n) = n | |
9 | |
10 record SingleLinkedStack (a : Set) : Set where | |
11 field | |
12 top : Maybe (Element a) | |
13 |