util

package module
v0.0.0-...-49fe472 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 23, 2021 License: MIT Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ListGet

func ListGet(l *list.List, index int) *list.Element

ListGet returns the index-th element from the specified list. If the list does not contain enough elements, nil is returned

func PositionInList

func PositionInList(l *list.List, elem *list.Element) int

PositionInList returns the position of an element in the list. If the element was not found, -1 is returned.

func RuneListToString

func RuneListToString(l *list.List) string

RuneListToString creates a string from a linked list of runes. If any of the elements is not a rune, the function panics. The function takes O(n).

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL