nim / latest / chains.html

std/chains

Source Edit

Template based implementation of singly and doubly linked lists. The involved types should have 'prev' or 'next' fields and the list header should have 'head' or 'tail' fields.

Templates

template append(header, node)
Source Edit
template prepend(header, node)
Source Edit

© 2006–2024 Andreas Rumpf
Licensed under the MIT License.
https://nim-lang.org/docs/chains.html