[erlang-questions] How to keep adding items to a data structure
Sun Apr 24 22:23:29 CEST 2016
On 04/24/2016 10:05 PM, Donald Steven wrote:
> Hi Antonios,
> You are kind and generous to help. I'll study this carefully. I will
> be wanting to add a list or a record, not just numbers. Is this
Well I don't know exactly what you want to achieve, but the logic is the
same. In [Num | Acc], instead of adding numbers you can add your
record/tuple/whatever. You might also need to reverse the list in the
edge case, when your counter reach zero.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 801 bytes
Desc: OpenPGP digital signature
More information about the erlang-questions