Iain Buclaw
4c07d45a79
Merge remote-tracking branch 'upstream/stable' into merge_stable
2023-12-02 13:57:02 +00:00
Steven Schveighoffer
01957e9edb
Fix 24267 - make it so grapheme can be used as an aa key
2023-11-29 23:27:08 +01:00
Dennis
8c39523ba9
Merge pull request #8857 from ntrel/find-split-result
...
[std.algorithm.searching] Refactor `findSplit` result types
2023-11-28 23:38:54 +01:00
Dennis
505f81ab87
Merge pull request #8856 from ntrel/find-split-docs
...
[std/algorithm/searching] Improve findSplit docs
2023-11-28 23:34:43 +01:00
Dennis
6096f40a29
Merge pull request #8849 from FeepingCreature/fix/issue-24243-format-chain-filter-filter
...
Fix issue 24243: chain() must tolerate being in the init state.
2023-11-28 21:31:46 +01:00
Nick Treleaven
52ae4d36a9
3 minor tweaks
2023-11-28 17:38:29 +00:00
Nick Treleaven
0819fec814
[std.algorithm.searching] Refactor findSplit result types
2023-11-28 17:28:55 +00:00
Nick Treleaven
6b5f730b84
[std/algorithm/searching] Improve findSplit docs
...
Improve formatting for returned tuple.
Fix type of `result[1]` for After/Before.
Fix `pred` description.
Show example using custom `pred`.
2023-11-27 17:19:31 +00:00
Feldwor
39712a19bf
Update conv.d: textImpl(): make static if more readable. ( #8854 )
...
* Update conv.d: textImpl(): make static if more readable.
Adds newlines at the end of statements in the source code.
2023-11-25 22:54:54 +08:00
Nick Treleaven
17bafda797
Fix assert on array literal ( #8851 )
...
Needed for https://github.com/dlang/dmd/pull/15837 .
2023-11-21 07:20:13 +08:00
Dennis
fe33c84610
Merge pull request #8836 from ntrel/fold-docs
...
[std.algorithm] Improve `fold` docs
2023-11-20 17:36:06 +01:00
Nick Treleaven
0ced94ca1c
[std.algorithm] Split find
docs into 2 ( #8844 )
...
It's much clearer to have separate docs for the overload not taking
`needle`, because its `pred` has a different signature and its behaviour
is simpler. It was necessary to move that overload (and its unittests)
above the other two.
Also improve the docs for the other overloads:
Remove duplicate BIGOH sentence already present under *Complexity*.
Use `e, n` for predicate parameter names, short for `element, needle`.
2023-11-20 22:19:03 +08:00
Nick Treleaven
edc5bbde7b
Make new tests documented
2023-11-20 11:11:44 +00:00
Nick Treleaven
a2c2f79dfa
Fix Issue 11111 - std.algorithm.canFind should support Needles...
...
The requirement that each needle must be a range is arbitrary, so remove
it.
Note: This overload of `canFind` calls `find(haystack, needles)` which
calls `startsWith`, which accepts mixed element and range needles.
2023-11-20 10:58:16 +00:00
Nick Treleaven
585ddbe691
[std.algorithm] Improve canFind
docs ( #8843 )
...
Minor tweaks.
Fix wrong `LREF`.
Also fix wrong `REF` to `among`.
2023-11-20 05:55:26 +08:00
Yang Yujie
870eb5d5d6
Add std/math/hardware.d support for LoongArch64.
2023-11-17 09:01:36 +01:00
Mathis Beer
f6ff0f7c37
chain() must tolerate being in the init state.
2023-11-14 09:53:00 +01:00
Petar Kirov
24dab1f547
docs(std.logger.package): Fix ddoc macro typo in "Basic Logging" section
2023-11-13 00:30:32 +01:00
HuskyNator
fc06c514a8
Add missing log function error
to std.logger
documentation ( #8846 )
...
Error was missing from the documentation here.
2023-11-12 16:56:26 +08:00
Atila Neves
886d792d09
Add optional element type to isForwardRange
...
Similar to #8819
2023-11-07 15:26:52 +01:00
Dennis
4a75ffd016
Merge pull request #8818 from ntrel/array-ctor
...
Fix Issue 24151 - std.container.array: `Array!string("")` does not compile
2023-11-07 10:55:01 +01:00
Nick Treleaven
39d921681b
Fix import
2023-11-06 17:50:20 +00:00
Paul Backus
fa0307e091
Revert "Fix Issue 24215 - isBasicType!Enum should be false"
...
This reverts commit 98326c477f
.
2023-11-04 10:57:37 -04:00
Paul Backus
98326c477f
Fix Issue 24215 - isBasicType!Enum should be false
2023-11-02 16:23:46 +01:00
Nick Treleaven
7f06f2358a
Rename b
to e
for element in predicates
2023-10-31 17:40:45 +00:00
Nick Treleaven
2170bb37bc
Tweak seed description
2023-10-31 17:37:05 +00:00
Nick Treleaven
5762f3311b
Explain predicate signature
2023-10-31 17:26:48 +00:00
Jonathan M Davis
1febc32aa6
Add Unshared to std.traits.
...
This is the shared equivalent of Unconst. It allows code to strip off
shared without stripping off const.
2023-10-31 11:51:59 +01:00
Paul Backus
c4cbe0c21b
Use isQualifierConvertible in isInputRange!(R, E)
...
This replaces the bespoke type comparison that was previously used. All
conversions allowed by the previous version are still allowed after this
change.
2023-10-31 11:38:10 +01:00
Nick Treleaven
f491d1f233
[std.algorithm] Improve fold
docs
...
Mention iteratively calling predicates in summary.
Use list to explain calling a single predicate with a seed.
Mention multiple results are produced in description.
Use list for see also.
Rename `seed` parameter `seeds` and fix docs.
Fix result docs when >1 predicate.
2023-10-30 16:17:24 +00:00
Steven Schveighoffer
0ec4f47130
Fix issue 24207 - make AbstractTask private so it's not inadvertently
...
accessible to users of Task.
2023-10-29 11:04:54 -04:00
Imperatorn
2458e8f82e
Typo
2023-10-29 15:39:13 +01:00
Paul Backus
4eb622ef4c
Add std.traits.isQualifierConvertible
2023-10-27 09:15:57 +02:00
Iain Buclaw
078e73e952
Adjust conditions in putChar to avoid declaring static symbol
...
Moves the declaration into a CTFE-only context so that nothing gets emitted at codegen
2023-10-25 08:04:34 +01:00
Per Nordlöw
578dfbfeb3
Correct spelling of Seperator to Separator in joiner()
2023-10-10 15:58:42 +02:00
Atila Neves
43d52a1f7c
Add more tests
2023-10-02 14:38:37 +02:00
Atila Neves
9531c76a4d
Address review comments
2023-09-28 08:51:56 +01:00
Atila Neves
6873816349
Add optional element type to isInputRange
2023-09-28 08:51:56 +01:00
Jan Jurzitza
ebea47d176
show that chomp doesn't remove spaces in example
...
It was written in the docs, but I think the example shows it more clearly and doesn't require the user to test it if in doubt anymore.
2023-09-24 12:10:11 +00:00
Nick Treleaven
0eaa3e25a1
Fix Issue 24151 - std.container.array: Array!string("") does not compile
2023-09-19 21:17:07 +01:00
Nathan Sashihara
7efbb973c2
Fix Issue 24142 - Allow casting Int128 to integral and floating types ( #8810 )
2023-09-18 07:15:35 +08:00
Iain Buclaw
71ec2cc5ca
Merge remote-tracking branch 'upstream/stable' into merge_stable
2023-09-16 10:51:41 +02:00
Nathan Sashihara
932ce6d17c
Fix Issue 24140 - Int128.opBinary [+-*/%&|^] with negative long arguments gives wrong answers
2023-09-12 02:03:09 +02:00
Jeremy
80747a9c9b
Improve documentation in std.socket
2023-09-10 17:05:45 +12:00
Jeremy
4203847ad6
Improve documentation in std.json
2023-09-10 16:59:21 +12:00
Walter Bright
9cb5f6d7db
Merge pull request #8802 from WalterBright/CRuntimeStdio
...
std.stdio: remove redundant version declarations
2023-08-24 09:07:52 -07:00
Walter Bright
6fd66c5455
std.stdio: untangle fdopen references
2023-08-24 09:00:24 +02:00
Walter Bright
258c98ac36
std.stdio: remove redundant version declarations
2023-08-23 21:50:17 -07:00
Dennis
9e1e8e7d51
Merge pull request #8797 from n8sh/int128-toString
...
Fix Issue 24082 - add Int128.toString that supports std.format
2023-08-20 19:38:02 +02:00
Nathan Sashihara
dcdb02cb6c
Fix Issue 24083 - Int128.opCmp's behavior with negative numbers is inconsistent with Int128.opEquals
2023-08-18 20:50:35 -04:00