()
| 548 | } |
| 549 | |
| 550 | func ExampleList_Slice() { |
| 551 | l := NewList[string]() |
| 552 | l = l.Append("foo") |
| 553 | l = l.Append("bar") |
| 554 | l = l.Append("baz") |
| 555 | l = l.Slice(1, 3) |
| 556 | |
| 557 | fmt.Println(l.Get(0)) |
| 558 | fmt.Println(l.Get(1)) |
| 559 | // Output: |
| 560 | // bar |
| 561 | // baz |
| 562 | } |
| 563 | |
| 564 | func ExampleList_Iterator() { |
| 565 | l := NewList[string]() |