butlast function

dynamic butlast(
  1. dynamic s$1
)

Implementation

dc.dynamic butlast(dc.dynamic s$1, ){
dc.dynamic ret$1=lcoc_core.$_EMPTY_VECTOR;
dc.dynamic s$2=s$1;
do {
final dc.dynamic test$1=lcoc_core.next(s$2, );
if(((test$1!=false)&&(test$1!=null))){
final dc.dynamic coll7642$1=ret$1;
final dc.dynamic o7643$1=lcoc_core.first(s$2, );
if((coll7642$1 is lcoc_core.ICollection$iface)){
ret$1=((coll7642$1 as lcoc_core.ICollection$iface).$_conj$1(o7643$1, ));
}else{
ret$1=((lcoc_core.ICollection.extensions(coll7642$1, ) as lcoc_core.ICollection$ext).$_conj$1(coll7642$1, o7643$1, ));
}
s$2=lcoc_core.next(s$2, );
continue;
}
final dc.dynamic o7603$1=ret$1;
if((o7603$1 is lcoc_core.ISeqable$iface)){
return ((o7603$1 as lcoc_core.ISeqable$iface).$_seq$0());
}
return ((lcoc_core.ISeqable.extensions(o7603$1, ) as lcoc_core.ISeqable$ext).$_seq$0(o7603$1, ));
} while(true);
}