Sign in
go
/
website
/
refs/heads/master
/
.
/
_content
/
tour
/
generics
/
list.go
blob: 6c6b4cd6405df0bc3a2f5ac0bfc9fe8f6cd716c1 [
file
] [
log
] [
blame
] [
edit
]
//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() {
}