repo.or.cz
/
some-myr-traits.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
add doomed_str, on probation
[some-myr-traits.git]
/
traits.myr
blob
7e2af4e9f9e0cb633e9686a9a5b84668cda57cb7
1
use std
2
3
pkg t =
4
trait comparable @t =
5
cmp : (a : @t, b : @t -> std.order)
6
;;
7
8
trait dupable @t =
9
dup : (a : @t -> @t)
10
;;
11
;;