Concatenation of array and range
Samuel Redding
samred at mail.com
Sun Jan 19 19:40:43 UTC 2025
On Sunday, 19 January 2025 at 19:35:31 UTC, user1234 wrote:
> On Sunday, 19 January 2025 at 18:57:51 UTC, Samuel Redding
> wrote:
>> Hello there,
>>
>> is it possible to concat an array and a range? In Python one
>> would have
>> """
>> list1 = [1, 2, 3]
>> list1 += array.array('L', range(a, b))
>> """
>>
>> The equivalent in D should be something like
>> """
>> ulong[] list1 = [1, 2, 3];
>> list1 ~= iota(a, b);
>> """
>>
>> I haven't found a way to do this. The only way to do it seems
>> [...]
Thanks a lot to all of you!
More information about the Digitalmars-d
mailing list