-
-
Notifications
You must be signed in to change notification settings - Fork 127
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Elixir style Piping #214
Comments
@cgarciae You should be able to use partial application for this. Translating your example above,
becomes
using the new |
@evhub Excellent! You've made my day! Another question. I couldnt get the |
@cgarciae Thanks, glad to hear it! As for the
|
Libraries such as Numpy and TensorFlow feature a function-based API where most functions take in an array or tensor respectively as their first parameter. You end up writing code like this
It would be nice if there was a way to do Elixir style Pipes (where the first argument of such pipe would be passed as first parameter to the next function) in Coconut to ease the use of these libraries. Lets imagine that
||>
was an operator such thatthen you could write the previous as
If possible I'd also like to suggest an operator for doing function composition in a forward manner, like Elm's
>>
operator. LetThe text was updated successfully, but these errors were encountered: