Ulti
Member
This works as expected, breaking after printing 'a -> apple' and hiding the 2nd two.
Now, if I add an additional layer of depth, I'm unable to break from the loop and all 3 entries get printed, ignoring my break:
I've also tried:
But still unable to break.
Code:
ash string[string] agg;agg['a']='apple';agg['b']='blue';agg['c']='carrot';foreach k,v, in agg{print(k+' -> '+v);break;}
Code:
ash string[string,string] agg;agg['a']['apple']='';agg['b']['blue']='';agg['c']['carrot']='';foreach k,v in agg{print(k+' -> '+v);break;}
Code:
ash string[string,string] agg;agg['a']['apple']='anthony';agg['b']['blue']='betty';agg['c']['carrot']='carl';foreach k,v,v2 in agg{print(k+' , '+v+' , '+v2);break;}