annotate src/AgdaParameterizedModule.agda @ 3:b124f02ea3f1

post agda code
author soto@cr.ie.u-ryukyu.ac.jp
date Wed, 09 Sep 2020 22:07:32 +0900
parents 73127e0ab57c
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1
soto@cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
1 module Sort (A : Set) (_<_ : A -> A -> Bool) where
soto@cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
2 sort : List A -> List A
soto@cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
3 sort = -- 実装は省略 ...
soto@cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
4
soto@cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
5 -- Parameterized Module により N.sort や B.sort が可能
soto@cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
6 open import Sort Nat Nat._<_ as N
soto@cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
7 open import Sort Bool Bool._<_ as B