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
Walter Bright
dc302d26a4
DIP25: make phobos work with it
2015-01-30 12:02:48 -08:00
Daniel Murphy
f255c9e689
Replace more implicit array to bool conversions
2015-01-28 16:33:12 +11:00
H. S. Teoh
58bbd1984a
Don't assume B.init is an lvalue.
2015-01-24 12:15:27 -08:00
H. S. Teoh
810779c9c4
Fallback to !=/== if < is not available.
2015-01-23 14:48:12 -08:00
H. S. Teoh
49b7fc6ed0
Improve documentation.
...
Add Params:. Use Returns:.
Include previously-overlooked overload that broke a ddoc'd unittest.
2015-01-22 10:11:08 -08:00
H. S. Teoh
56cf7879c1
Extend iota() to support any type that has < and ++.
2015-01-22 09:50:39 -08:00
Andrej Mitrović
f3604ad2e2
Merge pull request #2024 from CyberShadow/fix12409
...
fix Issue 12409 - Add "each" function as found in Ruby and jQuery
2015-01-11 15:02:53 +01:00
Peter Alexander
8bb453a983
Fix Issue 5036 - Remove caching from Sequence
...
This appears to be the last caching range in Phobos.
This is a potentially breaking change: we lose the ability to moveFront, and obviously there may be performance implications if the function is expensive and users are calling front more than once. I think this is still a worthwhile change since it is better to have a uniform policy of no caching on ranges rather than arbitrary selection of ranges that do caching.
https://issues.dlang.org/show_bug.cgi?id=5036
2015-01-02 10:40:25 +00:00
Vladimir Panteleev
bf14b8bd44
fix Issue 12409 - Add "each" function as found in Ruby and jQuery
2015-01-02 10:28:34 +00:00
Andrej Mitrović
3b182e4e04
Merge pull request #2808 from sinkuu/takeone
...
takeOne doesn't work with non-forward ranges
2014-12-31 19:49:33 +01:00
John Colvin
6ae78c3857
replace std.range.roundRobin mixins with static loops.
2014-12-28 18:55:03 +00:00
sinkuu
4031a11a44
takeOne for non-forward ranges
2014-12-24 11:33:00 +09:00
sinkuu
98088bb7df
Remove trailing whitespace
2014-12-24 11:07:57 +09:00
Andrej Mitrovic
67605b53dc
Merge pull request #2771 from quickfur/issue13766
...
Issue 13766: Fix broken ddoc build for std/regex/package.d.
2014-12-06 21:37:03 +01:00
H. S. Teoh
1ddb5010b6
Issue 9507: transposed() behaves poorly with jagged range of ranges
2014-12-05 11:00:58 -08:00
Nick Treleaven
4ba128b828
List walkLength under convenience functions rather than capabilities
2014-12-02 18:25:04 +00:00
H. S. Teoh
33af62ec89
Fix broken PHOBOSSRC link.
...
This is caused by Ddoc's "helpful" auto-highlighting of every occurrence of the
name of the module, including places where it's not very helpful.
2014-12-01 20:47:31 -08:00
H. S. Teoh
ad44c0bc7a
Update std.range.* docs.
...
The previous docs were simply dissected from the original std.range docs, and
the text in each module is truncated and awkward to read. The main package.d
docs were also missing links to the submodules. So, update the docs to reflect
the current state of things.
2014-12-01 20:47:30 -08:00
Tomoya Tanjo
c7e99d9baf
Make std.range.recurrence safe if possible
2014-12-01 19:13:07 +09:00
H. S. Teoh
a4d6c0a947
Merge pull request #2769 from tom-tan/system-range-cycle-for-sarray
...
Mark std.range.cycle for static array and their unittests as system
2014-11-30 19:50:55 -08:00
e10s
92114da099
use ElementType consistently
2014-12-01 02:02:25 +09:00
Rainer Schuetze
7c2f962b10
make nested foreach over TypeTuple bodies into lambdas to avoid huge functions
2014-11-28 17:15:37 +01:00
Tomoya Tanjo
56a543ca81
Mark std.range.cycle for static array and their unittests as system
2014-11-27 18:38:17 +09:00
Tomoya Tanjo
2adaeea02f
Move a modulo operation into the trusted function
2014-11-26 18:56:43 +09:00
Tomoya Tanjo
2aeba852ec
Remove redundant alias
2014-11-25 15:06:01 +09:00
Tomoya Tanjo
a7f8b29667
Make Cycle.this system and other methods safe
2014-11-25 14:47:09 +09:00
Tomoya Tanjo
ea7beb230d
Mark methods in std.range.cycle for static array as system
2014-11-25 14:29:54 +09:00
Ilya Yaroshenko
2c744b54e1
std.range: constraints => primitives
...
See discussion and voting in #2661
2014-11-23 20:05:20 +03:00
H. S. Teoh
d24cc0a69c
Include NullSink in std.range ddocs.
...
Partial fix for makefile to build std.range docs, that was broken after
std.range was split. This is only a partial fix; the full fix will have
to be done as part of [issue 13766] (https://issues.dlang.org/show_bug.cgi?id=13766 ).
2014-11-22 13:41:02 -08:00
David Nadlinger
c84986e5fb
Merge pull request #2736 from 9il/erc
...
fix std/range/constraints.d static errors
2014-11-19 03:40:07 +01:00
Ilya Yaroshenko
efb880f651
move format to std.format
...
The reason is to do not import `std.uni` tables, `std.string` and
probably `std.algorithm`. Note that format is used in CTFE code and
`Exception` handing.
And it is more comfortable to import `format` from `std.format`.
std.format: clean imports (2)
remove import std.math : pow from std.uni
update scope imports in std.algorithm
update scope imports in std.exception
doFormat -> template
update scope imports in std.typecons
update scope imports in std.functional
update scope imports in std.range
update std.conv scope import
std.format: clean imports (2)
remove import std.math : pow from std.uni
update scope imports in std.algorithm
update scope imports in std.exception
doFormat -> template
update scope imports in std.typecons
update scope imports in std.functional
update scope imports in std.range
move sfromat
add public import of sformat
use std.uni
2014-11-18 22:14:28 +03:00
Ilya Yaroshenko
8ecf823ea7
fix std/range/constraints.d static errors
...
remove scope import in std.range.constraints.
use string concatenation
__
2014-11-16 23:13:44 +03:00
Ilya Yaroshenko
66267de81f
dummy ranges module
...
rm
rename & add scope imports
update scope imports
std.algorithm: clean imports
update scope imports
update global imports
update *.mak
ditto
formatting
fix typo
fix scope import std.uni
update windows *.mak
add import to unittests
tabs fix
fix unittest
fix indentation
2014-11-15 03:07:10 +03:00
Ilya Yaroshenko
12ba522cba
std.range.constraints & std.array cleanup
...
use static import
rm static
2014-11-14 04:52:33 +03:00