You have no idea how pleased I am to be able to pass generic methods to reduce.
Conversation
wait wait wait, what's that now?
1
reduce(sequenceOfSets, Set(), uncurry(Set.union))
1
ok… it's not really a generic func getting passed, right? the type inference is just figuring it out better? just checking.
1
Correct. It’s just that before, you had to pass { $0.union($1) }, which is bogus.
2
1
2
sorry, not following why not just return f(fix(f))?
2
Right that's what Rob said. Not seeing how that applies here? May have Haskelled too hard
1
Replying to
Replying to
Right. So fix as defined in Prelude is the appropriate combinator for by-value semantics.



