Skip to content

Instantly share code, notes, and snippets.

@Svetixbot
Created March 16, 2018 08:22
Show Gist options
  • Save Svetixbot/9a0b44e8ca48a01ceaec8c1689ec054f to your computer and use it in GitHub Desktop.
Save Svetixbot/9a0b44e8ca48a01ceaec8c1689ec054f to your computer and use it in GitHub Desktop.
d1, d2, d3 are functions to deconstruct the {data}
t1, t2, t3 are functions to transform each of the destructed pieces
var result = for {
real_a <- data | d1 | t1
real_b <- data | d2 | t2
real_c <- data | d3 | t3
} yield (real_a, real_b, real_c)
result: Exception \/ (real_a, real_b, real_c)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment