|
|
|
|
|
by richhickey
5161 days ago
|
|
When you call a reducer like r/map or r/filter, the result is reducible but not seqable. So, if you have an incremental algorithm, are calling first etc, the seq-based fns are a better fit. Also, lazy fns automatically cache whereas reducers recalc every reduce, until you save the realized result. They are genuinely complementary in many ways. |
|
2) If seq or first is called on a reducible, wouldn't it be easy to just implicitly realize the reducible in to a sequence first?