YTSFlix_Go/vendor/github.com/anacrolix/missinggo/iter/chain.go

12 lines
141 B
Go
Raw Normal View History

2018-11-04 14:58:15 +00:00
package iter
func Chain(fs ...Func) Func {
return func(cb Callback) {
for _, f := range fs {
if !All(cb, f) {
break
}
}
}
}