Source

jackpot30-demo-examples / src / META-INF / upgrade / array-to-collection.hint

Full commit
1
2
3
4
5
6
for ($type $var : $arr) {
     $coll.add($var);
} :: $arr instanceof java.lang.Object[] && $coll instanceof java.util.Collection
=>
$coll.addAll(java.util.Arrays.asList($arr));
;;