gods/cmd/ll/main.go
2024-05-19 23:19:55 +05:00

22 lines
434 B
Go

package main
import (
"fmt"
"surdeus.su/core/gods/lists"
"strings"
)
func main() {
list := lists.NewSingly[string]("zero", "one", "two", "three", "four", "five")
fmt.Println(list)
uList := lists.NewSingly(list.Values()...)
for i, v := range uList.Values() {
uList.Set(i, strings.ToUpper(v))
}
fmt.Println(uList)
intList := lists.NewSingly[int](100, 5, -1, 1000, 200, 1337)
fmt.Println(intList)
//intList.Get(1000)
}