MCPcopy Create free account
hub / github.com/TheAlgorithms/Go / Array

Struct Array

structure/stack/stackarray.go:12–14  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10package stack
11
12type Array[T any] struct {
13 elements []T
14}
15
16// NewStack creates and returns a new stack.
17func NewStack[T any]() *Array[T] {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected