MCPcopy Index your code
hub / github.com/duke-git/lancet / ExampleOrderedMap_Values

Function ExampleOrderedMap_Values

maputil/map_example_test.go:690–703  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

688}
689
690func ExampleOrderedMap_Values() {
691 om := NewOrderedMap[string, int]()
692
693 om.Set("a", 1)
694 om.Set("b", 2)
695 om.Set("c", 3)
696
697 values := om.Values()
698
699 fmt.Println(values)
700
701 // Output:
702 // [1 2 3]
703}
704
705func ExampleOrderedMap_Contains() {
706 om := NewOrderedMap[string, int]()

Callers

nothing calls this directly

Calls 3

NewOrderedMapFunction · 0.85
SetMethod · 0.65
ValuesMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…