Reverse application operator |> #230

Closed
opened 2020-02-20 23:16:10 +09:00 by zxq9 · 0 comments
zxq9 commented 2020-02-20 23:16:10 +09:00 (Migrated from gitlab.com)

Created by: radrow

This idea was wandering around for several months. Speaking of the |> operator like in Elixir, Elm and F#. This is super cool and useful:

function enterprise_pipeline(int x) : stuff = x
  |> IntegerDivider.divide_int().by(3)
  |> Int.to_str
  |> StringAnalyzer.analyze("casual")
  |> StringAnalyzerResultProcesserFactory.make_factory
  |> StringAnalyzerResultProcesserFactory.produce_stuff
*Created by: radrow* This idea was wandering around for several months. Speaking of the `|>` operator like in Elixir, Elm and F#. This is super cool and useful: ``` function enterprise_pipeline(int x) : stuff = x |> IntegerDivider.divide_int().by(3) |> Int.to_str |> StringAnalyzer.analyze("casual") |> StringAnalyzerResultProcesserFactory.make_factory |> StringAnalyzerResultProcesserFactory.produce_stuff ```
Sign in to join this conversation.
No Milestone
No project
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: QPQ-AG/sophia#230
No description provided.