RazvanN7
67155f04e7
Fix Issue 23319 - std.range.Generator does not work with non-mutable elements
2022-12-05 15:24:34 +01:00
Paul Backus
be1dad3480
Fix 23453 - Generic iota should be a forward range
2022-11-03 14:39:25 -04:00
Ate Eskola
2031d0cfc7
Style fixed.
2022-01-25 22:55:43 +02:00
Ate Eskola
664e1cf2b4
Corrected initialization, thanks Radcapricorn!
2022-01-25 22:55:43 +02:00
Ate Eskola
ab547c78c3
Changed chooseAmong implementation from recursive to linear.
2022-01-25 22:55:43 +02:00
WebFreak001
5c5a8318b3
fix phobos style in unittest
2022-01-16 01:07:22 +01:00
WebFreak001
dac59a4bde
add isSomeFiniteCharInputRange as simplification
...
combines the very common constraint
`isInputRange!R && !isInfinite!R && isSomeChar!(ElementEncodingType!R)`
and adds a bunch of documentation with examples for users to understand
it better. This should lower the neccessary needed technical insight to
read basic docs, especially std.path and std.file docs.
2022-01-15 18:38:52 +01:00
Sebastian Wilzbach
63712f491c
Remove redundant access specifier from Phobos
2021-10-27 10:04:23 +03:00
Razvan Nitu
e2279cac12
Merge pull request #8284 from andralex/variadicEquals
...
RFC: alternative variadic implementation of equals
2021-10-20 10:26:37 +03:00
Razvan Nitu
e1d6e6f116
Merge pull request #8271 from dukc/fix21022
...
Fix issue 21022 - only should work with qualifiers
2021-10-19 21:05:56 +03:00
Andrei Alexandrescu
e5766c8c03
Fix related bug in EvenChunks
2021-10-19 10:42:27 -04:00
Ate Eskola
dadfd00b5e
Added a comment about the invariant of respecting stripped qualifiers.
2021-10-14 16:14:59 +03:00
Ate Eskola
769299f70b
Fix issue 21022 - only should work with qualifiers
2021-10-13 21:32:33 +03:00
Ate Eskola
dc15745a4a
Swapped out custom empty only
for a simpler empty array.
2021-10-13 17:59:56 +03:00
Luís Ferreira
ab73d95c31
std.range: make unittests reproducible when -boundscheck=off is present
...
Signed-off-by: Luís Ferreira <contact@lsferreira.net>
2021-08-29 23:06:28 +00:00
dkorpel
9ec24190b1
add explicit scope/return for pure functions
2021-07-11 13:34:25 +00:00
dkorpel
010f6b7078
use static foreach
for correct scope
inference
2021-06-08 10:21:59 +00:00
dkorpel
460ed9c619
improve documentation of SortedRange.release
2021-05-21 16:24:20 +02:00
nordlow
62d9ffb42c
Annotate std/range/package.d to please dlang/dmd#12520
2021-05-18 11:31:41 +02:00
Max Haughton
bc0a16273e
Fix Issue 21125 - Typo in std.range.refRange documentation for opIndex
2021-05-16 21:14:25 +02:00
berni44
b2019ebab0
Narrow imports of std.math in the rest of phobos.
2021-04-21 03:00:57 +02:00
Vladimir Panteleev
782af8cb89
std.range.package: Reduce maximum line length
2021-03-22 02:12:48 +00:00
Vladimir Panteleev
9bd2f2ba8f
std.range.package: Add messages to assertions in chain
2021-03-21 21:28:20 +00:00
Vladimir Panteleev
f45aa83b31
std.range.package: Add messages to assertions in stride
2021-03-21 21:28:20 +00:00
Vladimir Panteleev
437e68e939
std.range.package: Add messages to assertions in iota
2021-03-21 21:28:16 +00:00
Vladimir Panteleev
86d26bb7bc
std.range.package: Add missing assertion in chain.popFront/popBack
2021-03-21 21:24:40 +00:00
nordlow
6452c9aead
Remove comment in doc regarding incorrectness of Transpose.save
2021-03-11 16:41:12 +01:00
nordlow
5803c21b85
Remove std.range.Transposed.save
2021-03-11 16:39:02 +01:00
Tobias Pankrath
b8811d8de0
range: add example to search a SortedRange by key member
2021-03-05 03:04:38 +01:00
Bernhard Seckinger
9cb7755041
Replace approxEqual with isClose
2021-01-28 10:39:50 +01:00
Razvan Nitu
89abc75f02
Merge pull request #7745 from kinke/emplace
...
Get rid of std.conv.emplace[Ref](), use core[.internal].lifetime
2021-01-25 15:36:04 +08:00
Martin Kinkelin
1a459c5996
Get rid of std.conv.emplace[Ref](), use core[.internal].lifetime
...
The emplace() stuff was moved to druntime; for some reason, it's still
in Phobos.
I've diffed the two versions, and they are still almost identical (incl.
unittests); the druntime version appears to have seen some improvements
(e.g., forwarding r/lvalueness of the arguments) in the meantime.
2021-01-17 16:02:25 +01:00
mhh
c0585bcfa7
Line length
2021-01-17 04:57:51 +00:00
mhh
6708c3abf3
Fix style add @nogc @safe
2021-01-17 03:24:07 +00:00
mhh
03654a7568
Remove uncaught assert that snuck in
2021-01-17 02:22:16 +00:00
mhh
764e3e5a4a
signedLength is set properly; adds test coverage too.
2021-01-17 00:38:55 +00:00
mhh
32fd8ce36d
Whitesapce fix, bump CI
2021-01-11 00:55:51 +00:00
mhh
d957a66edd
Make std.range.enumerate @nogc. The overflow check was using std.conv which cannot be @nogc due the exceptions, it's now done manually.
2021-01-10 22:55:55 +00:00
Vladimir Panteleev
d836d5a76e
Revert "Remove some unnecessary undocumented explicit ctors in std.range"
...
This reverts commit f78fd811f0
.
2020-12-19 11:46:40 +00:00
Nathan Sashihara
f78fd811f0
Remove some unnecessary undocumented explicit ctors in std.range
2020-12-02 01:28:49 +01:00
Nathan Sashihara
b3edd8729a
Avoid quadratic template expansion in std.range.zip(Ranges).length
2020-12-02 01:27:18 +01:00
Andrei Alexandrescu
71ff9d79c5
EASY: factor implementations of range length into a mixin template
2020-09-20 02:38:14 +02:00
Martin Nowak
498b4b97d6
Merge remote-tracking branch 'upstream/master' into stable
...
Conflicts:
posix.mak
2020-09-09 10:18:21 +02:00
FeepingCreature
1f1a80d0a0
Fix issue 21129: Make OnlyResult
store the actual types passed to it as a tuple, instead of a static array of CommonType. ( #7584 )
...
Remove the unittest that verifies that `OnlyResult` doesn't depend on argument order - since it now does.
Add unittest for issue 21129.
2020-08-17 13:02:05 -04:00
MoonlightSentinel
f3a336bc7b
Remove invalid alias from chain's implementation
...
The ref has no effect anyway
2020-07-02 15:36:11 +02:00
MoonlightSentinel
54dbc0668c
Fix Issue 20751 - SortedRange with ref predicate parameters fails
...
isTwoWayCompatible should accept functions with ref parameters.
2020-04-26 00:44:39 +02:00
Steven Schveighoffer
c67e9d1ab9
specify return type for SortedRange.opBinaryRight!"in", as typically one would expect it to be a pointer to an element.
2020-04-19 15:31:28 -04:00
Geod24
04f3979317
Replace 'Issue XXX' with Bugzilla links
...
Make the links clickable, as was done in the DMD repository.
Also avoids any ambiguity w.r.t. where the issue is stored.
2020-04-13 16:28:09 +09:00
Sebastian Wilzbach
4421a4f157
Fix @betterC testsuite
2020-03-04 16:07:28 -08:00
Adam D. Ruppe
ae93f5317c
Use consistent quickindex wrapper around hand-written list-of-links tables
2020-02-21 21:04:05 -05:00