chunk_cons function
dynamic
chunk_cons(
- dynamic chunk$1,
- dynamic rest$1
Implementation
dc.dynamic chunk_cons(dc.dynamic chunk$1, dc.dynamic rest$1, ){
final dc.dynamic coll7677$1=chunk$1;
late final dc.int cast$1;
if((coll7677$1 is lcoc_core.ICounted$iface)){
cast$1=(((coll7677$1 as lcoc_core.ICounted$iface).$_count$0()) as dc.int);
}else{
cast$1=(((lcoc_core.ICounted.extensions(coll7677$1, ) as lcoc_core.ICounted$ext).$_count$0(coll7677$1, )) as dc.int);
}
final dc.bool $1=(0<cast$1);
if($1){
return lcoc_core.ChunkedCons(chunk$1, rest$1, null, -1, );
}
return rest$1;
}