Created
November 7, 2020 12:20
-
-
Save okram/29f3f09830aeb43c5d6679201965eb38 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> 5 => int+2-<(nat;nat+10)=(vertex;vertex)=>edge | |
==>edge:('outV'->vertex:('id'->nat:7),'inV'->vertex:('id'->nat:17)) | |
mmlang> int => int+2-<(nat;nat+10)=(vertex;vertex)=>edge | |
==>edge<=int[plus,2] | |
[split,(nat{?}<=int[is,bool<=int[gt,0]];nat{?}<=int[is,bool<=int[gt,0]][plus,10])] | |
[combine,(vertex;vertex)] | |
[as,edge<=(vertex;vertex) | |
[split,('outV'->vertex<=(vertex;vertex)[get,0,_], | |
'inV'->vertex<=(vertex;vertex)[get,1,_])]] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The
[explain]
instruction provides a human readable breakdown of your types (which, if they are not base types, are composed of yet more types).