fogfish / dynamo

Generic Golang Key/Value trait for AWS storage services
MIT License
19 stars 5 forks source link

FMap returns nil error #44

Closed fogfish closed 3 years ago

fogfish commented 3 years ago
// FMap transforms sequence
func (seq *dbSeq) FMap(f func(Gen) error) error {
    for seq.Tail() {
        if err := f(seq.slice.Head()); err != nil {
            return err
        }
    }
    return nil
}

return nil if seq.Tail() seeding fails with an error