Sign in
◑
Theme
go
/
website
/
9dfbbc3f99bbd1e7ea05b8f67f5e00b00ea5ab5e
/
.
/
_content
/
tour
/
generics
/
list.go
blob: 6c6b4cd6405df0bc3a2f5ac0bfc9fe8f6cd716c1 [
file
]
//go:build OMIT
package main
// List represents a singly-linked list that holds
// values of any type.
type List[T any] struct {
next *List[T]
val T
}
func main() {
}