Esempio n. 1
0
// Filter returns a new R instance that filters the time.Time Streams
// that r creates
func Filter(r R, f functional.Filterer) R {
	if nested, ok := r.(*filterR); ok {
		return &filterR{
			recurring: nested.recurring, filter: functional.All(nested.filter, f)}
	}
	return &filterR{recurring: r, filter: f}
}
Esempio n. 2
0
func newEntryFilter(s string) functional.Filterer {
	s = str_util.Normalize(s)
	if s == "" {
		return functional.All()
	}
	return entryFilter(s)
}