You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using the most current ROC (build from Nix flake).
This should work:
something = \foo, { firstBar ? Both, secondBar } ->
when firstBar isStart -> Str.concat secondBar foo
End -> Str.concat foo secondBar
Both ->
foo
|> something { firstBar: Start, secondBar }
|> something { firstBar: End, secondBar }
expect
x = something "aaa" { secondBar: "bbb" }
x =="bbbaaabbb"
But it doesn't:
# This 2nd argument to something has an unexpected type:## 30│ x = something "aaa" { secondBar: "bbb" }# ^^^^^^^^^^^^^^^^^^^^## The argument is a record of type:## { … }## But something needs its 2nd argument to be:## { firstBar : [# Both,# End,# Start,# ], … }## Tip: Looks like the firstBar field is missing.
Thank you.
The text was updated successfully, but these errors were encountered:
Hi everybody,
I'm using the most current ROC (build from Nix flake).
This should work:
But it doesn't:
Thank you.
The text was updated successfully, but these errors were encountered: