Hi folks,
I wonder if it is possible to use a method's return value as an array without pre-storing it into one.
This is what I really want to do:
print(split(",", "A,B,C,D")[2]);
Only solution I found (without storing the values into an array), was:
print([split(",", "A,B,C,D")]->[2]);
Is there a common perl-ish way how one can "set" the context for method's return values?
Thanks a lot in advance for all your wisdom!