Skip to content
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

Defining a pipeline operator? #876

Open
mationai opened this issue May 16, 2024 · 2 comments
Open

Defining a pipeline operator? #876

mationai opened this issue May 16, 2024 · 2 comments

Comments

@mationai
Copy link

I see rhai has operator overloading. Will it be possible to define a pipeline operator? If so, can someone provide the code to do so?

thanks.

@schungx
Copy link
Collaborator

schungx commented May 17, 2024

What do you mean... something like |>?

If so, I suppose you can. |> is a reserved symbol so I think you can define a custom operator based on that...

@schungx
Copy link
Collaborator

schungx commented May 30, 2024

@mationai Just out of curiosity, does it work?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants