Help!

Sergey kornburn at yandex.ru
Fri Jun 16 09:49:21 UTC 2023


On Friday, 16 June 2023 at 09:40:13 UTC, FeepingCreature wrote:
> On Friday, 16 June 2023 at 09:32:38 UTC, Sergey wrote:
>> On Friday, 16 June 2023 at 08:41:48 UTC, FeepingCreature wrote:
>>
>>> The behavior of `withPartial` seems to be random! For 
>>> instance, since the default of `slide` is stated to be 
>>> `Yes.withPartial`, shouldn't `[["1", "2"], ["2"]]` be the 
>>> correct answer, since the last element has less than two 
>>> entries?
>>
>> It seems withPartial thing should work only when the specific 
>> Window specified. Because in other case the whole range is 
>> available.
>
> Sure, but in these cases isn't the window specified as 2?

I would say if it is not specified, than it is equal to 
range.length
But I'm not using slide too often. Maybe someone else could 
elaborate more on this.


More information about the Digitalmars-d mailing list