File: list_test.go

package info (click to toggle)
golang-github-marstr-collection 0.3.3%2Bgit20171004.e631537-1.1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, forky, sid, trixie
  • size: 152 kB
  • sloc: makefile: 2
file content (10 lines) | stat: -rw-r--r-- 172 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
package collection

import "fmt"

func ExampleList_AddAt() {
	subject := NewList(0, 1, 4, 5, 6)
	subject.AddAt(2, 2, 3)
	fmt.Println(subject)
	// Output: [0 1 2 3 4 5 6]
}