$_assoc_n$2 method
dynamic
$_assoc_n$2(
- dynamic n$4,
- dynamic val$1
override
Implementation
dc.dynamic $_assoc_n$2(dc.dynamic n$4, dc.dynamic val$1, ){
final dc.bool or$7508_$AUTO_$4=(cnt<(n$4 as dc.num));
late final dc.bool $if_$4;
if(or$7508_$AUTO_$4){
$if_$4=or$7508_$AUTO_$4;
}else{
$if_$4=((n$4 as dc.num)<0);
}
if($if_$4){
throw dc.ArgumentError((lcoc_core.str.$_invoke$5("Index ", n$4, " out of bounds [0,", cnt, "]", )), );
}else{
}
if((n$4==cnt)){
final lcoc_core.PersistentVector<E> coll7642$1=this;
final dc.dynamic o7643$1=val$1;
if((coll7642$1 is lcoc_core.ICollection$iface)){
return ((coll7642$1 as lcoc_core.ICollection$iface).$_conj$1(o7643$1, ));
}
return ((lcoc_core.ICollection.extensions(coll7642$1, ) as lcoc_core.ICollection$ext).$_conj$1(coll7642$1, o7643$1, ));
}
if((((cnt-1)&(~31))<=(n$4 as dc.num))){
final dc.List<dc.dynamic> new_tail$1=(dc.List.from(tail, growable: false, ));
final dc.dynamic v$8086_$AUTO_$1=val$1;
new_tail$1[((n$4 as dc.int)&31)]=v$8086_$AUTO_$1;
return lcoc_core.PersistentVector(meta, cnt, shift, root, new_tail$1, -1, );
}
return lcoc_core.PersistentVector(meta, cnt, shift, lcoc_core.do_assoc(shift, root, n$4, val$1, ), tail, -1, );
}