On 02/07/2017 11:47 PM, Dmitry wrote:
On Wednesday, 8 February 2017 at 07:41:29 UTC, Ali Çehreli wrote:
test.naturalSort would sort the array in place before calling writeln
and 'test' would appear naturally sorted as well. I've fixed it like
this:
Great! Thank you!
Well, the title sort is
On Wednesday, 8 February 2017 at 07:41:29 UTC, Ali Çehreli wrote:
test.naturalSort would sort the array in place before calling
writeln and 'test' would appear naturally sorted as well. I've
fixed it like this:
Great! Thank you!
On 02/06/2017 09:00 PM, Dmitry wrote:
> On Monday, 6 February 2017 at 18:57:17 UTC, Ali Çehreli wrote:
>> I think it's now std.algorithm.chunkBy. Please fix Rosetta
>
> Thank you!
> I fixed
Thank you!
> but anyway it works incorrect (it doesn't any changes):
The problem was with the following
On Monday, 6 February 2017 at 18:57:17 UTC, Ali Çehreli wrote:
I think it's now std.algorithm.chunkBy. Please fix Rosetta
Thank you!
I fixed, but anyway it works incorrect (it doesn't any changes):
Code: https://rosettacode.org/wiki/Natural_sorting#D
Result: http://pastebin.com/hhSB4Vpn
like
On Monday, 6 February 2017 at 18:57:17 UTC, Ali Çehreli wrote:
On 02/06/2017 08:43 AM, Dmitry wrote:
Found this https://rosettacode.org/wiki/Natural_sorting#D
but there is error on ".groupBy!isDigit" (Error: no property
'groupBy'
for type 'string').
I think it's now std.algorithm.chunkBy.
On 02/06/2017 08:43 AM, Dmitry wrote:
Found this https://rosettacode.org/wiki/Natural_sorting#D
but there is error on ".groupBy!isDigit" (Error: no property 'groupBy'
for type 'string').
I think it's now std.algorithm.chunkBy. Please fix Rosetta Code as
well. Thanks! :)
Ali
On Monday, February 06, 2017 17:48:28 Dmitry via Digitalmars-d-learn wrote:
> On Monday, 6 February 2017 at 17:35:02 UTC, Jonathan M Davis
>
> wrote:
> > You have to import std.range to use groupBy.
>
> Of course, "import std.range" already done.
Hmm. Well, the error your getting typically is the
On Monday, 6 February 2017 at 17:35:02 UTC, Jonathan M Davis
wrote:
You have to import std.range to use groupBy.
Of course, "import std.range" already done.
I tested it also with full rosetta's code:
import std.stdio, std.string, std.algorithm, std.array, std.conv,
std.ascii, std.range;
str
On Monday, February 06, 2017 16:43:45 Dmitry via Digitalmars-d-learn wrote:
> Hi. I'm need get list of files in the directory, with natural
> sort, like:
> file_2
> file_8
> file_10
> file_11
> file_20
> file_100
> etc.
>
> Found this https://rosettacode.org/wiki/Natural_sorting#D
> but there is er
Hi. I'm need get list of files in the directory, with natural
sort, like:
file_2
file_8
file_10
file_11
file_20
file_100
etc.
Found this https://rosettacode.org/wiki/Natural_sorting#D
but there is error on ".groupBy!isDigit" (Error: no property
'groupBy' for type 'string').
with deleted line
10 matches
Mail list logo