mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-31 00:57:24 +00:00
update internal references to Result.map
This commit is contained in:
parent
326558337c
commit
297dd0233e
6 changed files with 11 additions and 11 deletions
|
@ -37,7 +37,7 @@ cheapest_open = \cost_function, model ->
|
|||
Ok(smallest_so_far)
|
||||
|
||||
Set.walk(model.open_set, Err(KeyNotFound), folder)
|
||||
|> Result.map(\x -> x.position)
|
||||
|> Result.map_ok(\x -> x.position)
|
||||
|
||||
reconstruct_path : Map position position, position -> List position
|
||||
reconstruct_path = \came_from, goal ->
|
||||
|
|
|
@ -37,7 +37,7 @@ cheapest_open = \cost_function, model ->
|
|||
Ok(smallest_so_far)
|
||||
|
||||
Set.walk(model.open_set, Err(KeyNotFound), folder)
|
||||
|> Result.map(\x -> x.position)
|
||||
|> Result.map_ok(\x -> x.position)
|
||||
|
||||
reconstruct_path : Dict position position, position -> List position where position implements Hash & Eq
|
||||
reconstruct_path = \came_from, goal ->
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue