nthnext function

dynamic nthnext(
  1. dynamic coll$1,
  2. dynamic n$1
)

Implementation

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