Created
November 5, 2020 18:29
-
-
Save okram/39483e1451f8308fa8d9ca7e3c327107 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mmlang> int => vertex | |
==>vertex<=int[is,bool<=int[gt,0]] | |
[coerce,vertex{?}<=nat{?}[split,('id'->nat)]] | |
mmlang> int => vertex => -<(_;_) | |
==>(vertex:('id'->nat);vertex:('id'->nat))<=int[is,bool<=int[gt,0]] | |
[coerce,vertex{?}<=nat{?}[split,('id'->nat)]] | |
[split,(vertex:('id'->nat);vertex:('id'->nat))] | |
mmlang> int => vertex => -<(_;_) => edge | |
==>edge<=int[is,bool<=int[gt,0]] | |
[coerce,vertex{?}<=nat{?}[split,('id'->nat)]] | |
[split,(vertex:('id'->nat);vertex:('id'->nat))] | |
[coerce,edge{?}<=(vertex:('id'->nat);vertex:('id'->nat)){?} | |
[split,('outV'->vertex<=(vertex:('id'->nat);vertex:('id'->nat))[get,0,_], | |
'inV'->vertex<=(vertex:('id'->nat);vertex:('id'->nat))[get,1,_])]] | |
mmlang> 5 => vertex => -<(_;_) => edge | |
==>edge:('outV'->vertex:('id'->nat:5),'inV'->vertex:('id'->nat:5)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment