Add algorithm.searching.count

This commit is contained in:
2018-09-30 15:25:10 +02:00
parent e68fcc3a38
commit 2a90a812db
5 changed files with 82 additions and 6 deletions

View File

@ -16,11 +16,9 @@ module tanya.container.array;
import core.checkedint;
import std.algorithm.mutation : bringToFront,
copy,
fill,
initializeAll,
uninitializedFill;
import std.meta;
import tanya.algorithm.comparison;
import tanya.algorithm.mutation;
import tanya.exception;

View File

@ -15,7 +15,6 @@
*/
module tanya.container.list;
import std.algorithm.searching;
import tanya.algorithm.comparison;
import tanya.algorithm.mutation;
import tanya.container.entry;

View File

@ -27,7 +27,6 @@
module tanya.container.string;
import std.algorithm.mutation : bringToFront;
import std.algorithm.searching : count;
import tanya.algorithm.comparison;
import tanya.algorithm.mutation;
import tanya.hash.lookup;
@ -1485,6 +1484,8 @@ struct String
///
@nogc pure @safe unittest
{
import tanya.algorithm.searching : count;
auto s = String("Из пословицы слова не выкинешь.");
assert(s.remove(s[5 .. 24]).length == 33);