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

[syntax] template type matching in pipes #4

Open
momentarylapse opened this issue Jul 21, 2024 · 0 comments
Open

[syntax] template type matching in pipes #4

momentarylapse opened this issue Jul 21, 2024 · 0 comments
Assignees

Comments

@momentarylapse
Copy link
Owner

Given a template function

func sum[T](list: T[]) -> T

we can already call

sum(range(10))

and it will instantiate the correct sum[i32] function.

But we still need proper matching for pipes:

range(10) |> sum
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

1 participant