()
| 596 | } |
| 597 | |
| 598 | func ExampleOrderedMap_Front() { |
| 599 | om := NewOrderedMap[string, int]() |
| 600 | |
| 601 | om.Set("a", 1) |
| 602 | om.Set("b", 2) |
| 603 | om.Set("c", 3) |
| 604 | |
| 605 | frontElement, ok := om.Front() |
| 606 | fmt.Println(frontElement) |
| 607 | fmt.Println(ok) |
| 608 | |
| 609 | // Output: |
| 610 | // {a 1} |
| 611 | // true |
| 612 | } |
| 613 | |
| 614 | func ExampleOrderedMap_Back() { |
| 615 | om := NewOrderedMap[string, int]() |
nothing calls this directly
no test coverage detected
searching dependent graphs…