loop#
- swordfish.function.loop()#
The loop template is very similar to the each template. Their difference is about the data form and data type of the function call results.
For the each template, the data types and forms of the return value are determined by each calculation result. It returns a vector or matrix if all calculation results have the same data type and form, otherwise it returns a tuple.
The loop template always returns a tuple.