Commit graph

139 commits

Author SHA1 Message Date
Per Nordlöw
76c4a43c92 Switch to faster version of staticMap 2022-08-16 22:58:51 +02:00
Andrei Alexandrescu
b44c0c638a
Use alias assignment in staticMap (#8039)
Use alias assignment in staticMap

Signed-off-by: Nathan Sashihara <n8sh@users.noreply.github.com>
Signed-off-by: Razvan Nitu <RazvanN7@users.noreply.github.com>
Merged-on-behalf-of: unknown
2021-10-26 22:06:41 +00:00
Bastiaan Veelo
c087cb5629 Match documentation with template heading. 2021-10-18 18:18:24 +00:00
Andrei Alexandrescu
4b3e8a9214
Merge pull request #8045 from andralex/staticSort
Improve staticSort by using some ctfe instead of template recursion
2021-10-13 17:45:47 -04:00
Andrei Alexandrescu
31ca51e9c1 Improve staticSort by using some ctfe instead of template recursion 2021-10-13 16:32:20 -04:00
Per Nordlöw
8ab7f7a043 Make allSatisfy and anySatisfy symbolic aliases to avoid extra template layer 2021-09-06 20:56:27 +02:00
Per Nordlöw
64d0dc3da1 Use version (StdUnittest) in std/meta.d 2021-09-03 12:39:41 +00:00
Razvan Nitu
e67d040bc9
Merge pull request #8036 from andralex/ReplaceAll
Improve ReplaceAll
2021-08-30 21:19:41 +08:00
Razvan Nitu
cabc5421f4
Merge pull request #8040 from andralex/Filter
Use alias assignment in Filter
2021-08-30 21:19:23 +08:00
Razvan Nitu
5ab9ad2561
Merge pull request #8034 from andralex/NoDuplicates
Improve and simplify NoDuplicates - uses alias assignment
2021-08-27 22:15:18 +08:00
Razvan Nitu
4d58eab1ec
Merge pull request #8033 from andralex/Erase
Simplify and improve Erase and EraseAll
2021-08-27 22:09:47 +08:00
The Dlang Bot
0987031978
Merge pull request #8044 from andralex/Repeat
Use alias assignment in Repeat

Signed-off-by: Razvan Nitu <RazvanN7@users.noreply.github.com>
Merged-on-behalf-of: Razvan Nitu <RazvanN7@users.noreply.github.com>
2021-08-27 13:40:14 +00:00
Andrei Alexandrescu
8d4cd43e44 Use alias assignment in Stride 2021-08-27 12:54:16 +00:00
Andrei Alexandrescu
6544a814e6 Improve Reverse 2021-08-27 11:57:51 +00:00
Andrei Alexandrescu
b0bca9b8e1 Fix wrong decimal separators 2021-08-27 13:11:12 +03:00
Andrei Alexandrescu
b452fcbd92 Use alias assignment in Repeat 2021-08-27 13:11:12 +03:00
Andrei Alexandrescu
880c61827a On second thought, simply have DerivedToFront call staticSort 2021-08-27 13:09:18 +03:00
Andrei Alexandrescu
342b4ee90d Simpler implementation 2021-08-27 13:09:18 +03:00
Andrei Alexandrescu
cd5f2e6a9b Use mergesort for DerivedToFront 2021-08-27 13:09:18 +03:00
Andrei Alexandrescu
4655240bbe Make staticIsSorted use static foreach instead of recursion 2021-05-10 19:20:37 +02:00
Andrei Alexandrescu
f7aaf69e93 Simpler implementation, same performance 2021-05-03 21:23:17 -04:00
Andrei Alexandrescu
073d85c1b9 Workaround for https://issues.dlang.org/show_bug.cgi?id=21889 2021-05-04 01:40:54 +02:00
Andrei Alexandrescu
d9ca259383 Use alias expansion in Filter 2021-05-03 18:28:29 -04:00
Andrei Alexandrescu
e6137d16d3 Simplify ReplaceAll 2021-05-03 16:48:44 -04:00
Andrei Alexandrescu
77bccca22f Improve and simplify NoDuplicates 2021-05-03 14:15:39 -04:00
Andrei Alexandrescu
af7650c822 Simplify and improve Erase and EraseAll 2021-05-03 11:34:50 -04:00
The Dlang Bot
a1ee4fd4fd
Merge pull request #8026 from andralex/isSame
Simplify isSame
merged-on-behalf-of: Nicholas Wilson <thewilsonator@users.noreply.github.com>
2021-05-02 03:45:45 +02:00
Andrei Alexandrescu
3b12a7ffea Use two alias parameters instead of variadics 2021-05-01 19:21:56 -04:00
Andrei Alexandrescu
4375ce271b Add couple of unittests, back to previous implementation 2021-05-01 19:12:56 -04:00
Andrei Alexandrescu
49f0eecf50 Petar Kirov's implementation 2021-05-01 19:03:03 -04:00
Andrei Alexandrescu
514b24944c Simplify isSame 2021-05-01 11:39:48 -04:00
Andrei Alexandrescu
4b8e234ed7 Simplify and improve staticIndexOf 2021-05-01 16:41:41 +02:00
Mathis Beer
f5197c82e7 Fix issue 21088: move alias statement into staticMap mixin body. 2020-07-30 05:51:25 +02:00
The Dlang Bot
77fa44cf45
Merge pull request #7518 from John-Colvin/faster_map
Faster staticMap and Filter
merged-on-behalf-of: Atila Neves <atilaneves@users.noreply.github.com>
2020-07-14 15:15:39 +02:00
Nicholas Wilson
a88271710b
Merge pull request #7542 from ntrel/meta-qual
std.meta: Fix wrong assert for Issue #20863
2020-07-08 17:03:12 +08:00
Nick Treleaven
af629b153b std.meta: Comment out (fix) wrong assert for Issue #20863
Necessary for https://github.com/dlang/dmd/pull/11320
2020-07-06 15:59:59 +01:00
Nick Treleaven
8308cef30b Don't use auto ref lambda 2020-06-21 08:44:41 +01:00
Nick Treleaven
9756265b28 Minor tweaks 2020-06-16 13:30:55 +01:00
Nick Treleaven
74416ab6eb Improve AliasSeq Map example
Inline simple functions, move testRef next to where it's used.
2020-06-16 13:21:53 +01:00
John Colvin
43d6d5bcf1 tweaks 2020-06-06 22:37:36 +01:00
John Colvin
393dea5d09 move to some Mixins for Filter 2020-06-06 17:50:43 +01:00
John Colvin
a9224b138f bring back a bit of the old Filter 2020-06-06 17:34:20 +01:00
John Colvin
3a83e46e49 fix for qualifiers 2020-06-06 17:01:50 +01:00
John Colvin
9876599d11 filter 2020-06-06 17:01:50 +01:00
John Colvin
eceefc3d3c map 2020-06-06 17:01:50 +01:00
The Dlang Bot
5ebf458b50
Merge pull request #7497 from WalterBright/meta-comment
staticMap: explain design
merged-on-behalf-of: Steven Schveighoffer <schveiguy@users.noreply.github.com>
2020-05-27 19:37:45 +02:00
Steven Schveighoffer
5053d19e67
Update wording 2020-05-27 12:33:50 -04:00
Walter Bright
c308dd134c staticMap: explain design 2020-05-25 18:28:03 -07:00
Andrei Alexandrescu
99eb8616fa Even simpler 2020-05-25 12:57:45 -04:00
Andrei Alexandrescu
f82c606a4b
Replace template AliasSeq with a simple alias
This is a direct realization of AliasSeq that better clarifies its intent.
2020-05-24 20:16:11 -04:00