MCPcopy
hub / github.com/duke-git/lancet / ExampleOrderedMap_Keys

Function ExampleOrderedMap_Keys

maputil/map_example_test.go:675–688  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

673}
674
675func ExampleOrderedMap_Keys() {
676 om := NewOrderedMap[string, int]()
677
678 om.Set("a", 1)
679 om.Set("b", 2)
680 om.Set("c", 3)
681
682 keys := om.Keys()
683
684 fmt.Println(keys)
685
686 // Output:
687 // [a b c]
688}
689
690func ExampleOrderedMap_Values() {
691 om := NewOrderedMap[string, int]()

Callers

nothing calls this directly

Calls 3

NewOrderedMapFunction · 0.85
SetMethod · 0.65
KeysMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…