by darkkindness · 6y ago · 0 comments
┌────────┬────────────────────┐
│myreduce│┌─────┬────────────┐│
│ ││mymap│┌────────┬─┐││
│ ││ ││myfilter│x│││
│ ││ │└────────┴─┘││
│ │└─────┴────────────┘│
└────────┴────────────────────┘
(The math one looks more like this:) ┌────────┬────────────┐
│myreduce│┌────────┬─┐│
│ ││mymap │x││
│ ││ │ ││
│ ││myfilter│ ││
│ │└────────┴─┘│
└────────┴────────────┘
But none of them provide the same kind of "putting pieces together" feeling as this: ┌────────┬─────┬────────┬─┐
│myreduce│mymap│myfilter│x│
└────────┴─────┴────────┴─┘
which we see in the wild as this: (myreduce ∘ mymap ∘ myfilter)(x)
or this: x | myfilter | mymap | myreduce
or this: myreduce mymap myfilter xNo comments yet.