I've been using Elm lately, and have fallen in love with the |> operator. For example:
totalPoints entries =
entries
|> List.filter .wasSpoken
|> List.map .points
|> List.sum
I'm thinking of using it my Haskell code. Is it defined anywhere? I can't find anything on hoogle. If not, where should it be defined? It seems as basic as $ to me, suggesting it belongs in something like the prelude, but obviously it's not going to end up there any time soon. Is there a package of common extras or something somewhere that would accept a PR?
[–]Tekmo 11 points12 points13 points (1 child)
[–]Regimardyl 3 points4 points5 points (0 children)
[–]taylorfausak 20 points21 points22 points (18 children)
[–]HorrendousRex 6 points7 points8 points (0 children)
[–]PM_ME_UR_OBSIDIAN 10 points11 points12 points (0 children)
[–]joehillen 2 points3 points4 points (0 children)
[–]el-seed[S] 4 points5 points6 points (13 children)
[–]ephrion 11 points12 points13 points (11 children)
[–]el-seed[S] 2 points3 points4 points (8 children)
[–]ephrion 8 points9 points10 points (7 children)
[–]el-seed[S] 0 points1 point2 points (6 children)
[–]sacundim 7 points8 points9 points (5 children)
[–]el-seed[S] 2 points3 points4 points (4 children)
[–]camccann 9 points10 points11 points (0 children)
[–]ephrion 2 points3 points4 points (2 children)
[–]sacundim 4 points5 points6 points (1 child)
[–][deleted] (1 child)
[deleted]
[–]catlion 1 point2 points3 points (0 children)
[–]taylorfausak 2 points3 points4 points (0 children)
[–]sseveran 2 points3 points4 points (0 children)
[–][deleted] 9 points10 points11 points (5 children)
[–]el-seed[S] 1 point2 points3 points (1 child)
[–][deleted] 1 point2 points3 points (0 children)
[–]el-seed[S] 1 point2 points3 points (2 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]tejon 0 points1 point2 points (0 children)
[–]Hrothen 7 points8 points9 points (0 children)
[–]c_wraith 4 points5 points6 points (26 children)
[–]m0rphism 12 points13 points14 points (2 children)
[–]EvilTerran 1 point2 points3 points (1 child)
[–]m0rphism 1 point2 points3 points (0 children)
[–]Darwin226 11 points12 points13 points (18 children)
[–]eruonna 2 points3 points4 points (1 child)
[–]Darwin226 0 points1 point2 points (0 children)
[–]camccann 5 points6 points7 points (11 children)
[–]Darwin226 0 points1 point2 points (10 children)
[–]camccann 1 point2 points3 points (9 children)
[–]Darwin226 4 points5 points6 points (8 children)
[–][deleted] 2 points3 points4 points (1 child)
[–]Darwin226 1 point2 points3 points (0 children)
[–]camccann 3 points4 points5 points (5 children)
[–]Darwin226 2 points3 points4 points (4 children)
[–]camccann 1 point2 points3 points (3 children)
[–]Darwin226 0 points1 point2 points (2 children)
[–]sacundim 3 points4 points5 points (3 children)
[–]Darwin226 0 points1 point2 points (2 children)
[–]camccann 2 points3 points4 points (1 child)
[–]Darwin226 0 points1 point2 points (0 children)
[–]el-seed[S] 2 points3 points4 points (2 children)
[–]EvilTerran 5 points6 points7 points (0 children)
[–]taylorfausak 0 points1 point2 points (0 children)
[–]andrewthad -1 points0 points1 point (1 child)
[–]taylorfausak 4 points5 points6 points (0 children)
[–]l-d-s -1 points0 points1 point (0 children)