Documentation ¶ Index ¶ type ArrayList func New[T any](capacity int) ArrayList[T] func (l ArrayList[T]) First() (T, bool) func (l ArrayList[T]) Last() (T, bool) func (l ArrayList[T]) Len() int func (a *ArrayList[T]) Pop() (T, bool) func (a *ArrayList[T]) Push(v T) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type ArrayList ¶ type ArrayList[T any] []T func New ¶ func New[T any](capacity int) ArrayList[T] func (ArrayList[T]) First ¶ func (l ArrayList[T]) First() (T, bool) func (ArrayList[T]) Last ¶ func (l ArrayList[T]) Last() (T, bool) func (ArrayList[T]) Len ¶ func (l ArrayList[T]) Len() int func (*ArrayList[T]) Pop ¶ func (a *ArrayList[T]) Pop() (T, bool) func (*ArrayList[T]) Push ¶ func (a *ArrayList[T]) Push(v T) Source Files ¶ View all Source files arraylist.go Click to show internal directories. Click to hide internal directories.