sequtils.addUnique
proc addUnique[T](s: var seq[T]; x: sink T)
- Kind
- proc
- Module
sequtils
Source: nim-lang.org, nim-lang.org. JSON record. This entry is a card. Help write this page.
The entries of sequtils in the Nim reference. This page has 36 cards.
proc addUnique[T](s: var seq[T]; x: sink T)
sequtilsSource: nim-lang.org, nim-lang.org. JSON record. This entry is a card. Help write this page.
proc all[T](s: openArray[T]; pred: proc (x: T): bool {.closure.}): bool
sequtilsSource: nim-lang.org, nim-lang.org. JSON record. This entry is a card. Help write this page.
template allIt(s, pred: untyped): bool
sequtilsSource: nim-lang.org, nim-lang.org. JSON record. This entry is a card. Help write this page.
proc any[T](s: openArray[T]; pred: proc (x: T): bool {.closure.}): bool
sequtilsSource: nim-lang.org, nim-lang.org. JSON record. This entry is a card. Help write this page.
template anyIt(s, pred: untyped): bool
sequtilsSource: nim-lang.org, nim-lang.org. JSON record. This entry is a card. Help write this page.
proc apply[T](s: var openArray[T]; op: proc (x: var T) {.closure.})
sequtilsSource: nim-lang.org, nim-lang.org. JSON record. This entry is a card. Help write this page.
template applyIt(varSeq, op: untyped)
sequtilsSource: nim-lang.org, nim-lang.org. JSON record. This entry is a card. Help write this page.
proc concat[T](seqs: varargs[seq[T]]): seq[T]
sequtilsSource: nim-lang.org, nim-lang.org. JSON record. This entry is a card. Help write this page.
proc count[T](s: openArray[T]; x: T): int
sequtilsSource: nim-lang.org, nim-lang.org. JSON record. This entry is a card. Help write this page.
template countIt(s, pred: untyped): int
sequtilsSource: nim-lang.org, nim-lang.org. JSON record. This entry is a card. Help write this page.
proc cycle[T](s: openArray[T]; n: Natural): seq[T]
sequtilsSource: nim-lang.org, nim-lang.org. JSON record. This entry is a card. Help write this page.
proc deduplicate[T](s: openArray[T]; isSorted: bool = false): seq[T]
sequtilsSource: nim-lang.org, nim-lang.org. JSON record. This entry is a card. Help write this page.
proc delete[T](s: var seq[T]; first, last: Natural)
sequtilsSource: nim-lang.org, nim-lang.org. JSON record. This entry is a card. Help write this page.
proc distribute[T](s: seq[T]; num: Positive; spread = true): seq[seq[T]]
sequtilsSource: nim-lang.org, nim-lang.org. JSON record. This entry is a card. Help write this page.
proc filter[T](s: openArray[T]; pred: proc (x: T): bool {.closure.}): seq[T]
sequtilsSource: nim-lang.org, nim-lang.org. JSON record. This entry is a card. Help write this page.
template filterIt(s, pred: untyped): untyped
sequtilsSource: nim-lang.org, nim-lang.org. JSON record. This entry is a card. Help write this page.
template findIt(s, predicate: untyped): int
sequtilsSource: nim-lang.org, nim-lang.org. JSON record. This entry is a card. Help write this page.
template foldl(sequence, operation, first): untyped
sequtilsSource: nim-lang.org, nim-lang.org. JSON record. This entry is a card. Help write this page.
template foldr(sequence, operation: untyped): untyped
sequtilsSource: nim-lang.org, nim-lang.org. JSON record. This entry is a card. Help write this page.
proc insert[T](dest: var seq[T]; src: openArray[T]; pos = 0)
sequtilsSource: nim-lang.org, nim-lang.org. JSON record. This entry is a card. Help write this page.
iterator items[T](xs: iterator (): T): T
sequtilsSource: nim-lang.org, nim-lang.org. JSON record. This entry is a card. Help write this page.
proc keepIf[T](s: var seq[T]; pred: proc (x: T): bool {.closure.})
sequtilsSource: nim-lang.org, nim-lang.org. JSON record. This entry is a card. Help write this page.
template keepItIf(varSeq: seq; pred: untyped)
sequtilsSource: nim-lang.org, nim-lang.org. JSON record. This entry is a card. Help write this page.
proc map[T, S](s: openArray[T]; op: proc (x: T): S {.closure.}): seq[S]
sequtilsSource: nim-lang.org, nim-lang.org. JSON record. This entry is a card. Help write this page.
template mapIt(s: typed; op: untyped): untyped
sequtilsSource: nim-lang.org, nim-lang.org. JSON record. This entry is a card. Help write this page.
macro mapLiterals(constructor, op: untyped; nested = true): untyped
sequtilsSource: nim-lang.org, nim-lang.org. JSON record. This entry is a card. Help write this page.
proc max[T](x: openArray[T]; cmp: proc (a, b: T): int): T
sequtilsSource: nim-lang.org, nim-lang.org. JSON record. This entry is a card. Help write this page.
proc maxIndex[T](s: openArray[T]): int
sequtilsSource: nim-lang.org, nim-lang.org. JSON record. This entry is a card. Help write this page.
proc min[T](x: openArray[T]; cmp: proc (a, b: T): int): T
sequtilsSource: nim-lang.org, nim-lang.org. JSON record. This entry is a card. Help write this page.
proc minIndex[T](s: openArray[T]): int
sequtilsSource: nim-lang.org, nim-lang.org. JSON record. This entry is a card. Help write this page.
proc minmax[T](x: openArray[T]): (T, T)
sequtilsSource: nim-lang.org, nim-lang.org. JSON record. This entry is a card. Help write this page.
template newSeqWith(len: int; init: untyped): untyped
sequtilsSource: nim-lang.org, nim-lang.org. JSON record. This entry is a card. Help write this page.
proc repeat[T](x: T; n: Natural): seq[T]
sequtilsSource: nim-lang.org, nim-lang.org. JSON record. This entry is a card. Help write this page.
template toSeq(iter: untyped): untyped
sequtilsSource: nim-lang.org, nim-lang.org. JSON record. This entry is a card. Help write this page.
proc unzip[S, T](s: openArray[(S, T)]): (seq[S], seq[T])
sequtilsSource: nim-lang.org, nim-lang.org. JSON record. This entry is a card. Help write this page.
proc zip[S, T](s1: openArray[S]; s2: openArray[T]): seq[(S, T)]
sequtilsSource: nim-lang.org, nim-lang.org. JSON record. This entry is a card. Help write this page.