cleaning up examples
This commit is contained in:
parent
333534a8d1
commit
9db2cb800d
10 changed files with 45 additions and 80 deletions
10
example/graph.msph
Normal file
10
example/graph.msph
Normal file
|
@ -0,0 +1,10 @@
|
|||
type gnode[e] = {
|
||||
member edges : iterable[e]
|
||||
}
|
||||
|
||||
type gedge[n] = {
|
||||
member src : n
|
||||
member dst : n
|
||||
}
|
||||
|
||||
type graph[n, e] = (n <: gnode[e]) & (e <: gedge[n])
|
Loading…
Add table
Add a link
Reference in a new issue