Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type LinkedList ¶
type LinkedList struct {
// contains filtered or unexported fields
}
LinkedList is a simple type which provides some operations upon a linked list
func NewList ¶
func NewList(s string) *LinkedList
NewList creates a new linked list with s as first element.
func (*LinkedList) AddData ¶
func (l *LinkedList) AddData(s string)
AddData adds a new element to the end of l.
func (*LinkedList) GetData ¶
func (l *LinkedList) GetData(i int) string
GetData returns the string in position i or an empty string if i does not exist
Click to show internal directories.
Click to hide internal directories.