MCPcopy
hub / github.com/go-task/task / NewMatrix

Function NewMatrix

taskfile/ast/matrix.go:29–37  ·  view source on GitHub ↗
(els ...*MatrixElement)

Source from the content-addressed store, hash-verified

27)
28
29func NewMatrix(els ...*MatrixElement) *Matrix {
30 matrix := &Matrix{
31 om: orderedmap.NewOrderedMap[string, *MatrixRow](),
32 }
33 for _, el := range els {
34 matrix.Set(el.Key, el.Value)
35 }
36 return matrix
37}
38
39func (matrix *Matrix) Len() int {
40 if matrix == nil || matrix.om == nil {

Callers 2

SetMethod · 0.85

Calls 1

SetMethod · 0.95

Tested by 1

Used in the wild real call sites across dependent graphs

searching dependent graphs…