take_last function

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

Implementation

dc.dynamic take_last(dc.dynamic n$1, dc.dynamic coll$1, ){
final dc.dynamic o7603$1=coll$1;
dc.dynamic s$1;
if((o7603$1 is lcoc_core.ISeqable$iface)){
s$1=((o7603$1 as lcoc_core.ISeqable$iface).$_seq$0());
}else{
s$1=((lcoc_core.ISeqable.extensions(o7603$1, ) as lcoc_core.ISeqable$ext).$_seq$0(o7603$1, ));
}
final dc.dynamic o7603$2=(lcoc_core.drop.$_invoke$2(n$1, coll$1, ));
dc.dynamic lead$1;
if((o7603$2 is lcoc_core.ISeqable$iface)){
lead$1=((o7603$2 as lcoc_core.ISeqable$iface).$_seq$0());
}else{
lead$1=((lcoc_core.ISeqable.extensions(o7603$2, ) as lcoc_core.ISeqable$ext).$_seq$0(o7603$2, ));
}
do {
if(((lead$1!=false)&&(lead$1!=null))){
s$1=lcoc_core.next(s$1, );
lead$1=lcoc_core.next(lead$1, );
continue;
}
return s$1;
} while(true);
}