Split iteration functions into own submodule.

This commit is contained in:
H. S. Teoh 2015-01-17 16:47:27 -08:00
parent 28feb36b6e
commit 9dc4c34379
5 changed files with 3774 additions and 3737 deletions

View file

@ -196,7 +196,8 @@ STD_NET_MODULES = $(addprefix std/net/, isemail curl)
STD_REGEX_MODULES = $(addprefix std/regex/, package $(addprefix internal/, \
generator ir parser backtracking kickstart tests thompson))
STD_ALGO_MODULES = $(addprefix std/algorithm/, package comparison setops sorting)
STD_ALGO_MODULES = $(addprefix std/algorithm/, package comparison iteration \
setops sorting)
STD_RANGE_MODULES = $(addprefix std/range/, package primitives interfaces)

View file

@ -1,7 +1,8 @@
// Written in the D programming language.
module std.algorithm.comparison;
import std.algorithm : filter, map, reverse; // FIXME: ugly hack
import std.algorithm : reverse; // FIXME: ugly hack
import std.algorithm.iteration : filter, map;
// FIXME
import std.functional; // : unaryFun, binaryFun;

3767
std/algorithm/iteration.d Normal file

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

View file

@ -1430,7 +1430,8 @@ unittest //safety, purity, ctfe ...
/++
Alias for $(XREF algorithm, _splitter).
+/
deprecated("Please use std.algorithm.splitter instead.") alias splitter = std.algorithm.splitter;
deprecated("Please use std.algorithm.iteration.splitter instead.")
alias splitter = std.algorithm.iteration.splitter;
/++
Eagerly splits $(D range) into an array, using $(D sep) as the delimiter.