(els ...*MatrixElement)
| 27 | ) |
| 28 | |
| 29 | func 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 | |
| 39 | func (matrix *Matrix) Len() int { |
| 40 | if matrix == nil || matrix.om == nil { |
searching dependent graphs…