return returns from the subroutine. It doesn't push data through a channel. If you want to return a collection of data from multiple loop iterations, you'll have to collect it first.
In reply to Re^3: sub will not return data correctly (the way i want it to!!)
by mr_mischief
in thread sub will not return data correctly (the way i want it to!!)
by james28909
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |