Sha256: 6c6dc41748a5cf4ab8f9c0ac9d948df1a53c0e624f60e2c4154f43967b3c1d9b
Contents?: true
Size: 599 Bytes
Versions: 170
Compression:
Stored size: 599 Bytes
Contents
package strain const testVersion = 1 type Ints []int func (s Ints) Keep(f func(int) bool) (r Ints) { for _, e := range s { if f(e) { r = append(r, e) } } return } func (s Ints) Discard(f func(int) bool) (r Ints) { for _, e := range s { if !f(e) { r = append(r, e) } } return } type Strings []string func (s Strings) Keep(f func(string) bool) (r Strings) { for _, e := range s { if f(e) { r = append(r, e) } } return } type Lists [][]int func (s Lists) Keep(f func([]int) bool) (r Lists) { for _, e := range s { if f(e) { r = append(r, e) } } return }
Version data entries
170 entries across 170 versions & 1 rubygems