Navigation: Developing Apps > BINETIX® AGE™ API > The Node > Toolkits > age_lists
bundle/2
Description
bundle/2 is an Erlang function exported by "age_lists" module.
Creates a bundle of the first N elements from a list.
References
None
Parameters
Name
Type
Input
list()
Input list of terms.
Size
integer()
Size of the bundle. Starting at 0.
Result
Value or Type
Returns the modified list.
Code Sample
> age_lists:bundle([a, b, c, 10, 20, 30], 4). [a, b, c, 10]