mirror of
https://github.com/unisonweb/unison.git
synced 2024-10-26 11:07:48 +03:00
1.0 KiB
1.0 KiB
unique type Map k v = Tip | Bin Nat k v (Map k v) (Map k v)
mapWithKey : (k ->{e} a ->{e} b) -> Map k a ->{e} Map k b
mapWithKey f m = Tip
Loading changes detected in scratch.u.
I found and typechecked these definitions in scratch.u. If you
do an `add` or `update`, here's how your codebase would
change:
⍟ These new definitions are ok to `add`:
type Map k v
mapWithKey : (k ->{e} a ->{e} b) -> Map k a ->{e} Map k b
scratch/main> add
⍟ I've added these definitions:
type Map k v
mapWithKey : (k ->{e} a ->{e} b) -> Map k a ->{e} Map k b
naiomi =
susan: Nat -> Nat -> ()
susan a b = ()
pam: Map Nat Nat
pam = Tip
mapWithKey susan pam
Loading changes detected in scratch.u.
I found and typechecked these definitions in scratch.u. If you
do an `add` or `update`, here's how your codebase would
change:
⍟ These new definitions are ok to `add`:
naiomi : Map Nat ()