mirror of
https://github.com/roc-lang/roc.git
synced 2025-07-24 15:03:46 +00:00
Multimorphic lambdas capture another lambda
This commit is contained in:
parent
b69d538ea0
commit
28c1cf46a3
5 changed files with 175 additions and 63 deletions
|
@ -6998,10 +6998,9 @@ mod solve_expr {
|
|||
|
||||
after : Lazy a, (a -> Lazy b) -> Lazy b
|
||||
after = \effect, map ->
|
||||
thunk = \{} ->
|
||||
\{} ->
|
||||
when map (effect {}) is
|
||||
b -> b {}
|
||||
thunk
|
||||
|
||||
f = \_ -> \_ -> ""
|
||||
g = \{ s1 } -> \_ -> s1
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue