Conversation
- Added an `AllSatisfy` operator. - Added tests. - Updated `README`.
|
Hey @vitallica ... It seems this operator already exists? |
|
Hey @freak4pc, thanks for looking at this PR. The native operator does not handle situations where |
|
@freak4pc while investigating further, I found a case in which the compiler chooses the native operator rather than this one. let names = ["John", "Jane", "Jim", "Jill", "Joan"]
Just(names)
.allSatisfy { $0.count <= 4 }
.sink { print("all short? \($0)") }This emits Just(names)
.allSatisfy { (name: String) in name.count <= 4 }
.sink { print("all short? \($0)") }This emits In order to avoid this conflict, I think I should rename this operator to |
|
I'm going to close this since it's super-old and I'm trying to clean up this repo. If this is still an issue / or something you'd like to pursue, feel free to comment and we can re-discuss. Thanks! |
AllSatisfyoperator.README.This is my first contribution to this library, so please feel free to offer any feedback.