Input/Output multiple values from function

a11e99z black80 at bk.ru
Wed Aug 28 07:23:27 UTC 2019


On Wednesday, 28 August 2019 at 05:17:28 UTC, Jabari Zakiya wrote:
> On Wednesday, 28 August 2019 at 04:39:23 UTC, Mike Parker wrote:
>> On Wednesday, 28 August 2019 at 04:19:49 UTC, Jabari Zakiya 
>> wrote:
>>> I have a function (say func1) that takes 1 input value (an 
>>> integer number) and outputs 4 values (2 integers and 2 arrays 
>>> of integers).
>>>
>>> Then inside another function (say func2) I provide the 1 
>>> input to func1 and then want to assign its 4 output values to 
>>> their appropriate final variables that will use them.
>>>

https://dlang.org/library/std/typecons/tuple.expand.html ?



More information about the Digitalmars-d-learn mailing list