MCPcopy
hub / github.com/google/mangle / getDurationValues

Function getDurationValues

builtin/builtin.go:713–723  ·  view source on GitHub ↗
(cs []T)

Source from the content-addressed store, hash-verified

711}
712
713func getDurationValues[T ast.BaseTerm](cs []T) ([]int64, error) {
714 var durations []int64
715 for _, c := range cs {
716 d, err := getDurationValue(c)
717 if err != nil {
718 return nil, err
719 }
720 durations = append(durations, d)
721 }
722 return durations, nil
723}
724
725// Abs returns the absolute value of x.
726// Note that Abs(math.MinInt64) is math.MaxInt64.

Callers 1

DecideFunction · 0.85

Calls 1

getDurationValueFunction · 0.85

Tested by

no test coverage detected