MetaLang
67e853607e
More precisely define what this overload returns
2017-11-19 00:33:35 -04:00
MetaLang
dd70c998f7
Change comment as requested by Andrei
2017-11-19 00:31:13 -04:00
Sebastian Wilzbach
42236b711d
Provide pred-only overload to std.algorithm.searching.findSkip
2017-11-17 17:45:46 +01:00
MetaLang
a9b395d503
Fix tabs
2017-10-01 22:16:41 -03:00
MetaLang
99def7bc97
Change the findSplit example into a documented unit test
2017-10-01 22:11:51 -03:00
Jon Degenhardt
30c280156c
Issue 17385: Update findSplit doc so example compiles.
2017-10-01 13:49:13 -07:00
Basile Burg
722ecd878c
fix issue 12470 - std.array.replace does not work with inout(char)[]
2017-09-13 20:08:01 +02:00
RazvanN7
3a4f83577e
Get rid of unused variables in std/algorithm
2017-08-02 17:30:16 +03:00
Sebastian Wilzbach
7fb31acf4f
Add unittest for partial instantiation
2017-07-08 02:36:37 +02:00
Sebastian Wilzbach
4a2a2da607
Make std.algorithm.searching.skipOver an eponymous template
2017-07-08 02:36:27 +02:00
Sebastian Wilzbach
a6dd949717
Unify needle overloads of std.algorithm.searching.find
2017-07-08 00:24:44 +02:00
The Dlang Bot
37d15a89c5
Merge pull request #5543 from RazvanN7/Issue_17525
...
Fix Issue 17525 - std.algorithm.searching.skipOver should have a single argument with pred version
merged-on-behalf-of: Sebastian Wilzbach <sebi.wilzbach@gmail.com>
2017-07-07 08:35:05 +02:00
RazvanN7
734641b4df
Optimize count with an overload which calls walkLength
2017-07-06 22:05:20 +03:00
Sebastian Wilzbach
16b9188b4a
Fix deprecations
2017-07-05 18:28:51 +02:00
RazvanN7
1d1b42f413
Fix Issue 17525 - std.algorithm.skipOver should have a single argument with pred version
2017-07-05 12:56:23 +03:00
Sebastian Wilzbach
61717ecc7d
Sort imports
2017-06-12 07:54:38 +02:00
The Dlang Bot
bd80096e44
Merge pull request #5422 from JackStouffer/endsWith-decoding
...
Removed auto-decoding from the single needle version of endsWith
merged-on-behalf-of: Jack Stouffer <jack@jackstouffer.com>
2017-05-25 21:53:15 +02:00
Jack Stouffer
825ad38183
Removed auto-decoding from the single needle version of endsWith
2017-05-24 09:27:41 -04:00
Jack Stouffer
99659e6076
Removed unnessesary auto-decoding from the single argument version of startsWith
2017-05-24 09:14:31 -04:00
The Dlang Bot
8146e88326
Merge pull request #5210 from wilzbach/std-algorithm-disable-quick-index
...
std.algorithm: remove quickIndex, fix outdated book tables & HTML links
merged-on-behalf-of: Sebastian Wilzbach <sebi.wilzbach@gmail.com>
2017-03-03 15:35:24 +01:00
Sebastian Wilzbach
169c82c938
std.algorithm.searching: no mapping-specialization for extremum ( #5001 )
...
std.algorithm.searching: no mapping-specialization for extremum
merged-on-behalf-of: Sebastian Wilzbach <sebi.wilzbach@gmail.com>
2017-03-03 05:00:49 +01:00
Jack Stouffer
e554764c01
Merge pull request #5216 from wilzbach/unluckily-phobos
...
Replace LUCKY links with actual links
2017-03-01 15:17:19 -05:00
Jack Stouffer
2e90b8ba16
Remove unused debug writelns in std.algorithm
2017-03-01 09:47:27 -05:00
Sebastian Wilzbach
b3bf38e6d6
std.algorithm: remove quickIndex, fix outdated book tables & HTML links
2017-03-01 03:59:48 +01:00
Sebastian Wilzbach
d548e8830a
Replace LUCKY links with actual links
2017-02-28 23:46:54 +01:00
Sebastian Wilzbach
ee1e261992
std.algorithm.searching: move takeWhile
line to the current definition
2017-02-28 21:48:38 +01:00
Jack Stouffer
f2b5834172
Linked to the definition of forward and bidirectional ranges where they're mentioned in std.algorithm
2017-02-26 11:44:55 -05:00
Jack Stouffer
7d4ac19030
Linked to the definition of input ranges where they're mentioned
2017-02-25 19:18:54 -05:00
Sebastian Wilzbach
a2c6398332
Automatically add spaces to binary operators (==)
...
command:
sed -E "s/([[:alnum:]]) == ([[:alnum:]])/\1 == \2/g" -i **/*.d
sed -E "s/([[:alnum:]])== ([[:alnum:]])/\1 == \2/g" -i **/*.d
sed -E "s/([[:alnum:]]) ==([[:alnum:]])/\1 == \2/g" -i **/*.d
2017-02-23 00:57:47 +01:00
Sebastian Wilzbach
a36cec8686
DScanner: automatially set all unattributed unittests to @safe or @system
2017-02-22 05:42:04 +01:00
Sebastian Wilzbach
805c720595
Unify Phobos by ensuring there's always a space after cast(...)
...
Command:
sed -E 's/([^"])cast\(([^)]*?)\)([[:alnum:]])/\1cast(\2) \3/g' -i **/*.d
2017-02-21 16:40:20 +01:00
Sebastian Wilzbach
5521541032
Unify assert style to have no spaces between the first brace
...
Application of:
sed -E "s/assert +\(/assert(/" -i **/*.d
2017-02-21 15:27:15 +01:00
Sebastian Wilzbach
87dec58a41
DStyle: Constraints on declarations should have the same indentation level
2017-02-17 07:36:23 +01:00
Sebastian Wilzbach
8d5b051235
Provide reference to other common names
2017-02-16 02:57:51 +01:00
LemonBoy
ccfd30019a
Cast a void pointer to char* before subtracting it
2017-01-15 15:37:48 +01:00
Sebastian Wilzbach
d8c5437d36
Add new min/maxIndex symbols to booktables
2016-12-21 10:51:16 +01:00
Sebastian Wilzbach
e2025c2c34
Add public examples to std.algorithm
2016-12-20 04:14:10 +01:00
Sebastian Wilzbach
f3a840144a
Merge pull request #4921 from RazvanN7/Issue_8573
...
Issue 8573 - A simpler Phobos function that returns the index of the …
2016-12-16 16:16:48 +01:00
RazvanN7
d2c7d3761b
Issue 8573 - A simpler Phobos function that returns the index of the mix or max item
...
Issue 8573 - A simpler Phobos function that returns the index of the mix or max item
added some review fixes
fixed an issue with a mutable variable
Applied review feedback
Renamed functions to minIndex and maxIndex + used sizediff_t for return value type
Updated function so that it works optimally even for lazy ranges and algorithms
Reverted to having only copyable elements in ranges
Added more unittests; implemented an array path; fixed documentation
Squashed commits
2016-12-16 11:11:07 +02:00
Sebastian Wilzbach
cc7f125ed1
Add missing imports to public unittests
2016-12-15 23:23:35 +01:00
Sebastian Wilzbach
f0c5a9fad6
Follow-up style fixes for December
2016-12-08 12:32:24 +01:00
RazvanN7
ff4b6b9e65
Solved a minor bug
2016-12-06 16:01:21 +02:00
RazvanN7
2e896520c9
Applied review feedback, fixed some bugs + added unit tests for them
2016-12-06 13:52:24 +02:00
RazvanN7
60396a1d67
Fixed some issues
2016-12-06 13:19:57 +02:00
RazvanN7
71ffa25d8a
added a comment
2016-12-06 13:19:57 +02:00
RazvanN7
e4b82503b8
Issue 8829 - std.algorithm.find fails to take advantage of SortedRange
2016-12-06 13:19:57 +02:00
RazvanN7
752b2ca210
Issue 8829 - std.algorithm.find fails to take advantage of SortedRange
2016-12-06 13:19:57 +02:00
RazvanN7
d6519853e1
Issue 8829 - std.algorithm.find fails to take advantage of SortedRange
2016-12-06 13:19:57 +02:00
RazvanN7
8b29f206ae
Issue 8829 - std.algorithm.find fails to take advantage of SortedRange
2016-12-06 13:19:57 +02:00
Alexandru Razvan Caciulescu
946a46774c
Fix Issue 8087 - Improve clarity of std.algorithm documentation
2016-10-31 08:17:06 +02:00