Skip to content

Instantly share code, notes, and snippets.

View Atavixion's full-sized avatar
😄

Julian Atavixion

😄
View GitHub Profile
@Atavixion
Atavixion / main.go
Created January 7, 2024 14:07
A Tour of Go/Generic types excercise
package main
import "fmt"
// List represents a singly-linked list that holds
// values of any type.
type List[T any] struct {
next *List[T]
val T
}