nthrest function
dynamic
nthrest(
- dynamic coll$1,
- dynamic n$1
Implementation
dc.dynamic nthrest(dc.dynamic coll$1, dc.dynamic n$1, ){
dc.int n$2=(n$1 as dc.int);
dc.dynamic xs$1=coll$1;
do {
final dc.bool and$7468_$AUTO_$1=(0<n$2);
late final dc.dynamic temp$7490_$AUTO_$1;
if(and$7468_$AUTO_$1){
final dc.dynamic o7603$1=xs$1;
if((o7603$1 is lcoc_core.ISeqable$iface)){
temp$7490_$AUTO_$1=((o7603$1 as lcoc_core.ISeqable$iface).$_seq$0());
}else{
temp$7490_$AUTO_$1=((lcoc_core.ISeqable.extensions(o7603$1, ) as lcoc_core.ISeqable$ext).$_seq$0(o7603$1, ));
}
}else{
temp$7490_$AUTO_$1=and$7468_$AUTO_$1;
}
if(((temp$7490_$AUTO_$1!=false)&&(temp$7490_$AUTO_$1!=null))){
final dc.dynamic xs$2=temp$7490_$AUTO_$1;
n$2=(n$2-1);
xs$1=lcoc_core.rest(xs$2, );
continue;
}
return xs$1;
} while(true);
}