def core = let
def comp[a, b, c](g: func(b, c), h: func(a, b)) =
fn(a: a) -> g(h(a))
in { comp }
def mod_value = record({
type: type,
to_string: func(type, string)
})
def maybe({ type: a_type, to_string: a_to_string }): mod_value = let
def type = variant(a_type, Nil)
def to_string(m: type) = match m
when a_type: a_to_string(m)
else ""
in { type, to_string }
-
Notifications
You must be signed in to change notification settings - Fork 0
gumvic/monada
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published