mint icon indicating copy to clipboard operation
mint copied to clipboard

Allow comments in the middle of `|>` pipelines

Open farism opened this issue 2 years ago • 0 comments

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>
  }
}

farism avatar Sep 03 '23 11:09 farism