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
In some languages, piping allows passing the result of the left hand side of the operator in as the first parameter of invoking the right hand side as a function call. E.g, foo.len() |> Int.max(5) would be equivalent to calling Int.max(foo.len(), 5).
Since Muse is too dynamic to support traditional extension approaches, this pattern will hopefully serve as a reasonable alternative.
The text was updated successfully, but these errors were encountered:
In some languages, piping allows passing the result of the left hand side of the operator in as the first parameter of invoking the right hand side as a function call. E.g,
foo.len() |> Int.max(5)
would be equivalent to callingInt.max(foo.len(), 5)
.Since Muse is too dynamic to support traditional extension approaches, this pattern will hopefully serve as a reasonable alternative.
The text was updated successfully, but these errors were encountered: