Dragos Carp
d698887729
Remove obsolete TypeTuple references
...
Replace following names:
std.typetuple -> std.meta
TypeTuple -> AliasSeq
ParameterTypeTuple -> Parameters
FieldTypeTuple -> Fields
std.traits requires more work than search/replace and is left unchanged.
2015-10-13 20:37:44 +02:00
k-hara
8e11f0ebe2
fix Issue 10895 - incorrect std.array.join behavior with array of string-like class using alias this
2015-09-03 17:54:40 +09:00
David Soria Parra
f5fb09c91e
Remove dead insert() comment
...
The comment about insert() is from 2011. insert() is long gone and insertInPlace
is the standard. No need to keep the old commented-out function around.
2015-08-29 02:10:24 -07:00
Dmitry Olshansky
a336f3c7bc
Merge pull request #3497 from aG0aep6G/hasMember
...
std.traits.hasMember: just forward to __traits(hasMember, ...)
2015-08-27 09:29:55 +03:00
H. S. Teoh
41abc0c5ec
Add sameHead/sameTail to function list in docs.
2015-08-23 21:24:35 -07:00
k-hara
9d24ef3500
Add unittest for the fixed unlisted bug
2015-08-20 09:10:30 +09:00
k-hara
ea811edab9
Supplemental fix for issue 14925 - remove redundant conditions
2015-08-20 09:09:29 +09:00
Steven Schveighoffer
3f8b910e2c
Fix issue 14925 -- merge overloads of replaceInPlace to avoid ambiguity
...
with template instantiation. Also, preclude narrow strings and other
invalid combinations (e.g. long[] and int[]) from being selected for
optimized path.
2015-08-19 11:45:02 -04:00
anonymous
dd2161705a
std.traits.hasMember: just forward to __traits(hasMember, ...)
...
This way opDispatch'ed members are recognized.
Fixes issue 14605 - RefAppender fails isOutputRange.
2015-07-16 21:29:46 +02:00
anonymous
b28962635f
fix package XREFs
...
Also add escaping underscores in some places, and rewrap to 80 columns
where touching anyway.
2015-06-15 22:30:41 +02:00
Robert Schadek
1d251a5d78
Merge pull request #3147 from aceawan/add_example_sameHead
...
Add a use example to sameHead in array.d
2015-05-23 12:46:19 +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
Tomoya Tanjo
1558213058
Make std.array.replicate for most cases @safe
2015-04-30 15:44:42 +09:00
Tomoya Tanjo
f2e2710bc2
Fix the comment in unittest for std.array.Appender
2015-04-07 15:56:05 +09:00
aceawan
827059f522
add an example for replaceInto.
2015-04-06 18:36:00 +02:00
aceawan
7c96dfa519
Replace some tabs indentation with 4 spaces indentation
2015-04-06 18:00:53 +02:00
aceawan
e49c7c5060
Add an example for replaceSlice function and split an assert in two lines in the split's example.
2015-04-06 17:56:58 +02:00
aceawan
afb1a3d2df
Add some examples to the split function
2015-04-06 11:13:27 +02:00
aceawan
a5621a2271
Add some examples to the replicate function
2015-04-06 11:05:29 +02:00
aceawan
c875216da7
Add an example for the sameTail function.
2015-04-06 10:53:18 +02:00
aceawan
68ad6f1781
Add a use example to sameHead in array.d
2015-04-04 22:18:59 +02:00
Steven Schveighoffer
0489d82a1f
Remove unneeded @disable clear now that clear is removed from object.di
2015-04-01 13:21:55 -04:00
Steven Schveighoffer
5615d4212a
Remove unit test that checks for the removal of object.clear
2015-03-31 08:38:25 -04:00
Martin Nowak
ef0bceb30e
improve diagnostic for assocArray
...
- turn constraints into static asserts
2015-03-14 15:08:33 +01:00
sinkuu
43e56d57a5
Fix Issue 14230 - std.array.join misses the first element which is empty string
2015-02-28 17:59:16 +09:00
Ulrich Kuettler
6f6c6862d6
Add table headers in ddoc function tables
2015-02-21 19:10:51 +01:00
Walter Bright
877e490de7
fix trusted issues in std.array
2015-02-10 12:09:09 -08:00
H. S. Teoh
9dc4c34379
Split iteration functions into own submodule.
2015-01-20 09:14:06 -08:00
Ulrich Küttler
20008483d6
Update std.array documentation
2015-01-12 10:07:30 +01:00
Andrej Mitrović
88722a83e2
Merge pull request #2842 from quickfur/issue9119_byPair
...
Implement byPair.
2015-01-08 21:37:19 +01:00
Andrei Alexandrescu
ba100ff803
Merge pull request #2837 from Poita/Issue13877
...
Fix Issue 13877 - join assumes forward range can be cheaply iterated twice
2015-01-07 16:27:00 -08:00
H. S. Teoh
5d440aaec4
Add Params: to ddocs.
...
Hide ugly-as-sin internal comment about compiler bug that shouldn't be
in the generated documentation!
2015-01-07 06:32:19 -08:00
H. S. Teoh
a59a301381
Fixups based on feedback.
2015-01-07 06:32:19 -08:00
H. S. Teoh
08f5c1daf2
Implement byPair.
...
Improve docs a little.
2015-01-07 06:32:19 -08:00
Mike Parker
77585def4f
Fix broken link to isForwardRange in split doc.
2015-01-07 11:33:02 +09:00
Peter Alexander
f81de7d9b9
Fix Issue 13877 - join assumes forward range can be cheaply iterated twice
...
e.g. with `r.map!(someExpensiveFunction).join`, `join` would previously iterate twice: once to compute length, and again to build up the result. The extra iteration to compute length may be disproportionately expensive, so we now only precompute length for built-in arrays, since we know those are cheap to iterate.
The heuristic could be improved over time, although I can't think of anything better right now.
https://issues.dlang.org/show_bug.cgi?id=13877
2015-01-04 10:08:55 +00:00
Andrej Mitrović
95095812ce
Merge pull request #2817 from aldacron/split-doc
...
Ehance ddoc for std.array.split.
2015-01-02 15:31:03 +01:00
Peter Alexander
9f90a63709
Fix Issue 13909 - assocArray with const values
...
Just a diagnostic issue. The assignment in the loop won't work with non-mutable keys. We now catch in the constraint.
https://issues.dlang.org/show_bug.cgi?id=13909
2015-01-02 09:33:58 +00:00
Mike Parker
42c5a2f036
Change param 'r' to 'range' and LINK2 to FULL_XREF
2015-01-02 01:47:54 +09:00
Mike Parker
11896ee449
Enhance ddoc for std.array.split.
2015-01-02 01:45:21 +09:00
Walter Bright
7ec5433474
improve doc on std.array.join
2014-12-27 11:39:16 -08:00
Rainer Schuetze
7c2f962b10
make nested foreach over TypeTuple bodies into lambdas to avoid huge functions
2014-11-28 17:15:37 +01: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
379d9537bc
Merge pull request #2747 from 9il/join2
...
use emplaceRef in join
2014-11-23 08:47:00 -08:00
Ilya Yaroshenko
8b6dccdc69
use emplaceRef in join
...
And remove old trustedAllocateArray.
uninitializedArray is already trusted.
2014-11-22 12:52:10 +03:00
Ilya Yaroshenko
c8d9afedea
clean scope imports
...
imports of `std.range, std.algorithm, std.array, std.string,
std.format, std.uni` are affected.
2014-11-21 00:08:35 +03:00