Sign in
go
/
website
/
3fc36b61c2f6d69a03ff6df6c5f56c5e85040011
/
.
/
_content
/
tour
/
generics
/
list.go
blob: a3fb309c80b2e30b719ad55924540de60f4687a8 [
file
] [
log
] [
blame
]
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() {
}