Commit graph

139 commits

Author SHA1 Message Date
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
Ilya Yaroshenko
4515a201d1 type 2014-11-12 00:20:21 +03:00
Ilya Yaroshenko
deef0cfba3 update dummyRanges 2014-11-12 00:15:39 +03:00
Ilya Yaroshenko
70884cb072 dummyRanges 2014-11-12 00:00:58 +03:00
Ilya Yaroshenko
31953f1d32 range/constraints.d move mixin
and update scope imports
2014-11-11 23:41:46 +03:00
Ilya Yaroshenko
290cb51d69 range/constraints.d : update imports and unites
solv unittest name conflict with std.algorithm
2014-11-11 23:29:27 +03:00
Ilya Yaroshenko
ab83cd94da std.string: clean imports 2014-11-11 22:42:57 +03:00
Ilya Yaroshenko
c828a08b64 std.range.package init
delete range.d

std.range : move traits

move concept

1. traits => concept
2. move manipulation into concept

update package import

update module name

remove range.traits import

remove some local imports

add _swapImpl

move _swapImpl

fix _swapImpl

fix hasSlicing

restore old hasSwappableElements

update unittests

update unitises

fix module name

fix pop****N

move interfaces

update unites

add import std.typetuple : staticMap

clean imports

rename local min to _min

remove wrong scope import

add until for unittests

update *.mac

update import

optimize DList import

move comment

remove private global selective imports

remove private global selective imports (interfaces)

remove new private stuff

add local imports

public import std.typecons : Flag, Yes, No;

concept => constraints

update scoped imports

add local imports (min)
2014-11-11 18:26:36 +03:00