mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-03 11:52:19 +00:00
Fix parse error
This commit is contained in:
parent
729f0a8e27
commit
7298705db7
1 changed files with 1 additions and 5 deletions
|
@ -127,11 +127,7 @@ remove = \@Dict list, key ->
|
|||
|> @Dict
|
||||
|
||||
## Insert or remove a value in a Dict based on its presence
|
||||
update :
|
||||
Dict k v,
|
||||
k,
|
||||
([Present v, Missing] -> [Present v, Missing])
|
||||
-> Dict k v | k has Eq
|
||||
update : Dict k v, k, ([Present v, Missing] -> [Present v, Missing]) -> Dict k v | k has Eq
|
||||
update = \dict, key, alter ->
|
||||
possibleValue =
|
||||
get dict key
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue