MCPcopy Create free account
hub / github.com/cogentcore/core / TableColumnIndex

Function TableColumnIndex

plot/plots/table.go:25–32  ·  view source on GitHub ↗
(tab Table, name string)

Source from the content-addressed store, hash-verified

23}
24
25func TableColumnIndex(tab Table, name string) int {
26 for i := range tab.NumColumns() {
27 if tab.ColumnName(i) == name {
28 return i
29 }
30 }
31 return -1
32}
33
34// TableXYer is an interface for providing XY access to Table data
35type TableXYer struct {

Callers

nothing calls this directly

Calls 2

NumColumnsMethod · 0.65
ColumnNameMethod · 0.65

Tested by

no test coverage detected