gods/cmd/ll/main.go

15 lines
225 B
Go
Raw Normal View History

2023-07-21 20:38:32 +03:00
package main
import (
"fmt"
2023-08-27 15:41:30 +03:00
"github.com/mojosa-software/godat/llx"
2023-07-21 20:38:32 +03:00
)
func main() {
2023-08-27 15:33:44 +03:00
ll := llx.New[string]("zero", "one", "two", "three", "four", "five")
2023-08-27 15:41:30 +03:00
ll.Push("-one", "-two")
2023-08-27 15:33:44 +03:00
ll.Swap(0, 2)
fmt.Println(ll.Slice())
2023-07-21 20:38:32 +03:00
}