On Thursday, 24 June 2021 at 05:39:22 UTC, jfondren wrote:
- ok, it's useful that it's like this
Albeit (the grumbling and) the weirdness of it, this is exactly
the reason why I am not complaining on such behavior -time will
show me.
On Thursday, 24 June 2021 at 02:33:42 UTC, someone wrote:
On Thursday, 24 June 2021 at 01:36:47 UTC, Ali Çehreli wrote:
import std.algorithm;
lnumRange.sort!(r"a > b"c);
return lnumRange;
The above works OK. Funny thing indeed, at least to me, totally
unexpected.
```d
On Thursday, 24 June 2021 at 01:36:47 UTC, Ali Çehreli wrote:
import std.algorithm;
lnumRange.sort!(r"a > b"c);
return lnumRange;
The above works OK. Funny thing indeed, at least to me, totally
unexpected.
```d
return lnumRange.sort!(r"a > b"c); /// does not work
return
On 6/23/21 6:09 PM, mw wrote:
> I think in most other popular language's std lib:
>
> container.sort();
>
> or
>
> sort(container);
>
>
> is just one call, and the user will expect the `container` is sorted
> after the call.
That's exactly the same in D. What's different is, D's sort() does not
On Thursday, 24 June 2021 at 00:47:28 UTC, mw wrote:
On Thursday, 24 June 2021 at 00:32:31 UTC, Steven Schveighoffer
This `SortedRange` definitely need better documentation. E.g.
users can easily convert their `sort()` code to D from Java or
Python code after reading the doc.
I think in
On Thursday, 24 June 2021 at 00:32:31 UTC, Steven Schveighoffer
wrote:
On 6/23/21 7:07 PM, someone wrote:
On Wednesday, 23 June 2021 at 22:46:28 UTC, Steven
Schveighoffer wrote:
Use the `release` method:
```d
return lnumRange.sort!(...).release;
```
Fantastic, issue solved, I previously
On 6/23/21 7:07 PM, someone wrote:
On Wednesday, 23 June 2021 at 22:46:28 UTC, Steven Schveighoffer wrote:
Use the `release` method:
```d
return lnumRange.sort!(...).release;
```
Fantastic, issue solved, I previously used sort ascending even
descending but first time on floats.
So I
On Wednesday, 23 June 2021 at 22:46:28 UTC, Steven Schveighoffer
wrote:
Use the `release` method:
```d
return lnumRange.sort!(...).release;
```
-Steve
Fantastic, issue solved, I previously used sort ascending even
descending but first time on floats.
So I went and searched phobos docs:
On Wednesday, 23 June 2021 at 22:46:28 UTC, Steven Schveighoffer
wrote:
On 6/23/21 6:30 PM, Jordan Wilson wrote:
On Wednesday, 23 June 2021 at 19:53:24 UTC, someone wrote:
[...]
```sort``` returns a ```SortedRange```, and I believe you wish
to return a float. So you can do either ```return
On Wednesday, 23 June 2021 at 22:30:29 UTC, Jordan Wilson wrote:
```sort``` returns a ```SortedRange```, and I believe you wish
to return a float.
no, I want to return the range (full of floats) sorted -think it
amount or prices or whatever
On 6/23/21 6:30 PM, Jordan Wilson wrote:
On Wednesday, 23 June 2021 at 19:53:24 UTC, someone wrote:
Please, look for the line marked +++
This is a structure with a public property returning a (still
unsorted) range built on-the-fly from already-set properties, a basic
range from a to z with
On Wednesday, 23 June 2021 at 19:53:24 UTC, someone wrote:
Please, look for the line marked +++
This is a structure with a public property returning a (still
unsorted) range built on-the-fly from already-set properties, a
basic range from a to z with n step where some specific values
can be
12 matches
Mail list logo