gods/cmd/ll/main.go

23 lines
434 B
Go
Raw Normal View History

2023-07-21 20:38:32 +03:00
package main
import (
"fmt"
2024-05-19 21:19:55 +03:00
"surdeus.su/core/gods/lists"
2023-10-24 22:29:00 +03:00
"strings"
2023-07-21 20:38:32 +03:00
)
func main() {
2023-10-24 00:48:29 +03:00
list := lists.NewSingly[string]("zero", "one", "two", "three", "four", "five")
fmt.Println(list)
2023-10-24 22:29:00 +03:00
uList := lists.NewSingly(list.Values()...)
for i, v := range uList.Values() {
uList.Set(i, strings.ToUpper(v))
}
fmt.Println(uList)
2023-10-24 00:48:29 +03:00
intList := lists.NewSingly[int](100, 5, -1, 1000, 200, 1337)
fmt.Println(intList)
2023-10-24 22:03:30 +03:00
//intList.Get(1000)
2023-07-21 20:38:32 +03:00
}