nxt.algorithm

Algorithms that either improve or complement std.algorithm`.

Functions are when possible pure nothrow @safe @nogc. Haystack parameter is when possible and relevant scope return inout(T)[] and DIP-1000-compliant. Needle parameter is either scope const(T)[] or T[].

Provides more than twice as fast compilation for char-arrays (strings).

Modules

comparison
module nxt.algorithm.comparison

Algorithms that either improve or complement std.algorithm.comparison.`

searching
module nxt.algorithm.searching

Algorithms that either improve or complement std.algorithm.searching.`

sortn
module nxt.algorithm.sortn

Fixed Length Sorting via Sorting Networks.

Public Imports

nxt.algorithm.searching
public import nxt.algorithm.searching;
Undocumented in source.
nxt.algorithm.comparison
public import nxt.algorithm.comparison;
Undocumented in source.
nxt.algorithm.sortn
public import nxt.algorithm.sortn;
Undocumented in source.

See Also

https://forum.dlang.org/post/sjirukypxmmcgdmqbcpe@forum.dlang.org https://forum.dlang.org/thread/ybamybeakxwxwleebnwb@forum.dlang.org?page=1

TODO: Merge into separate array-specializations of Phobos algorithms for less template bloat in Phobos.

Meta