Commit graph

191 commits

Author SHA1 Message Date
Lionello Lunesu
8fc047f277 Fixed DDoc warnings 2015-05-30 09:17:43 -06:00
Per Nordlöw
86ce606394 Tweak comment 2015-05-28 11:14:23 +02:00
Per Nordlöw
6b11acbeaa Add more test 2015-05-27 13:41:36 +02:00
Per Nordlöw
1bdacaa50a Remove space 2015-05-27 13:38:50 +02:00
Per Nordlöw
f000d7d52c Remove word 2015-05-27 13:35:31 +02:00
Per Nordlöw
d6a468a401 Bugfix unittest 2015-05-27 13:34:00 +02:00
Per Nordlöw
6461bb624e Better unittest 2015-05-27 13:33:32 +02:00
Per Nordlöw
8b845fa35a Rename less to pred 2015-05-27 12:33:53 +02:00
Per Nordlöw
7e70009ada Improve comment 2015-05-27 12:28:53 +02:00
Per Nordlöw
e97eab6111 Remove unused import 2015-05-27 12:22:23 +02:00
Per Nordlöw
36f22cc7ee First try 2015-05-27 12:06:47 +02:00
Andrei Alexandrescu
1661282563 Move choose's construction into constructor 2015-05-22 11:16:07 -07:00
Andrei Alexandrescu
cfce4035f8 Fix save & postblit 2015-05-22 02:08:48 -07:00
Andrei Alexandrescu
9ead7e5ee6 choose() takes a bool, chooseAmong() takes a size_t; also fix a number of bugs in the original 2015-05-22 01:39:21 -07:00
Andrei Alexandrescu
a1e3944cc9 Merge pull request #3269 from WalterBright/choose
add std.range.choose()
2015-05-21 20:15:56 -07:00
Walter Bright
88fc74ac0c add std.range.choose() 2015-05-13 20:34:39 -07:00
Jonathan M Davis
0a8c30ef84 Merge pull request #3274 from aG0aep6G/14575
fix Issue 14575 - compile error with std.range.refRange when front/ba…
2015-05-12 04:03:33 -07:00
anonymous
08ea0476a5 fix Issue 14575 - compile error with std.range.refRange when front/back isn't implicitly convertible from const to mutable 2015-05-12 11:51:00 +02:00
Walter Bright
7afcc10fe1 std.range.chain() - remove bug workaround 2015-05-11 13:32:51 -07:00
Marc Schütz
25b0466fba Fix typo
argorithm => algorithm
2015-05-09 17:23:20 +02:00
Walter Bright
d9a9826e55 Revert "Introducing std.meta package" 2015-05-06 14:36:45 -07:00
Dicebot
7970fcc748 Don't use fqn for any/all
In most cases it resolves unambiguosly
2015-05-05 22:22:11 +03:00
Dicebot
1c9ae027ef Rename old std.typetuple symbols inside Phobos
staticIndexOf -> indexOf
allSatisfy -> all
anySatisfy -> any
staticMap -> Map
2015-05-05 22:22:11 +03:00
Dicebot
82f54a38d3 TypeTuple -> MetaList inside Phobos 2015-05-05 22:22:11 +03:00
Dicebot
73f773838d import std.typetuple -> import std.meta 2015-05-05 22:22:10 +03:00
Dragos Carp
b170d93693 Fix some PHOBOSSRC broken links 2015-04-29 11:02:58 +02:00
anonymous
0842fc7841 @nogc for std.range.primitives.{empty,save,popFront,popBack,front,back}
Excluding the UTF-decoding variants, because those throw GC allocated
exceptions.

Makes sure that issue 12666 - "@nogc std.array.front, popFront, and more"
stays fixed.
2015-04-23 22:15:41 +02:00
Martin Nowak
f4894c6302 Merge pull request #3123 from aG0aep6G/14373
fix Issue 14373 - std.range.refRange doesn't work on mere input ranges
2015-04-17 21:47:26 +02:00
drug007
6a51a2b398 Improve unittest for std.range.cycle for better documentation.
Add all imports needed to run this unittest as a separate code.
Add detailed description of unittest.
Improved readablitity (removed slicing of static arrays and rearranged functions calls).
2015-04-16 18:25:27 +03:00
anonymous
9c9727154d check that R is an input range 2015-04-03 12:05:54 +02:00
anonymous
ca4e7d22ec fix Issue 14373 - std.range.refRange doesn't work on mere input ranges 2015-03-29 13:29:39 +02:00
Walter Bright
a0f0a3930d improve doc for std.range.primitives.isInputRange 2015-03-29 00:46:47 -07:00
Robert Schadek
876900d1f8 Merge pull request #3086 from WalterBright/iota-example
add illuminating example to std.range.iota
2015-03-25 11:43:20 +01:00
Walter Bright
e9b6c84f99 add illuminating example to std.range.iota 2015-03-24 21:11:11 -07:00
Vladimir Panteleev
15d5501d99 std.range.package: Fix unbalanced DDoc paren 2015-03-19 21:51:13 +00:00
H. S. Teoh
b608e61c43 Merge pull request #3003 from kuettler/sort_range_toc
Sort ddoc table of functions in range package
2015-03-19 13:42:55 -07:00
H. S. Teoh
fa297af0e6 Merge pull request #3005 from Poita/Issue14183
Fix Issue 14183 - Changes to groupBy
2015-03-19 13:04:07 -07:00
Martin Nowak
1e976bc4da Merge pull request #3002 from burner/generator_successor
generator succcessor replacement for PR #2606
2015-03-14 06:04:40 +01:00
Robert burner Schadek
775d2c770c generator succcessor replacement for PR #2606
* split into two generateOnFront, generateOnPopFront

worked in martins suggestion

straits -> traits

no more popFront

martin fixes
2015-03-10 13:58:48 +01:00
John Colvin
6ba693f10a replace some enforces with contracts
added tests

contracts for stride and iota

contracts for stride and iota
2015-03-04 12:35:52 +00:00
Ulrich Kuettler
518ec901de Sort ddoc table of functions in range package
Add a little more structure to the documentation

Case insensitive sorting

Fix wording
2015-02-20 09:56:19 +01:00
Peter Alexander
c6520969ea Fix Issue 14183 - Changes to groupBy
* Renamed `groupBy` to `chunkBy`
* Undocumented `aggregate`
* Added `groupBy` member function to `SortedRange`
* Unary `chunkBy` returns tuple of key and chunk.

https://issues.dlang.org/show_bug.cgi?id=14183
2015-02-18 21:21:27 +00:00
Ulrich Kuettler
568cd18b43 Fix Issue 13390 - Be explicit about non-empty input and fail early
Add unittest
2015-02-17 23:01:55 +01:00
Andrei Alexandrescu
5dd6df0bd3 Merge pull request #2996 from quickfur/std_algo_cleanup
std.algorithm cleanup
2015-02-16 16:50:14 -08:00
Andrei Alexandrescu
11b32b56e5 Fix links 2015-02-16 13:39:18 -08:00
H. S. Teoh
d4a85e24c4 iota is not in std.algorithm, it's in std.range. 2015-02-16 11:49:26 -08:00
Robert burner Schadek
087c505b86 range documentation update
* moved examples from comments to unittests
* marked verify unittests as doc unittests and deleted duplication
2015-02-03 16:13:24 +01:00
Martin Nowak
b5b1625ef7 fix safety of put primitive 2015-02-02 22:39:13 +01:00
Andrei Alexandrescu
c0aad5b580 Fix debug build 2015-02-01 12:51:33 -08:00
Andrei Alexandrescu
71e3ecf680 Merge pull request #2934 from WalterBright/dip25
DIP25: make phobos work with it
2015-01-30 13:59:37 -08:00