Created
March 16, 2018 08:22
-
-
Save Svetixbot/9a0b44e8ca48a01ceaec8c1689ec054f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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