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

Allow comments in the middle of |> pipelines #635

Open
farism opened this issue Sep 3, 2023 · 0 comments
Open

Allow comments in the middle of |> pipelines #635

farism opened this issue Sep 3, 2023 · 0 comments

Comments

@farism
Copy link
Contributor

farism commented Sep 3, 2023

Allowing comments in the middle of |> pipelines would be very useful

component Main {
  fun render : Html {
    let sum =
      [1, 2, 3]
      |> Array.map((i : Number) { i * 2 })
      // |> Array.select((i : Number) { i % 3 == 0 })
      |> Array.reduce(0, (acc : Number, i : Number) { acc + i })

    <div>"#{sum}"</div>
  }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant