$_invoke$3 method
dynamic
$_invoke$3(
- dynamic s$3,
- dynamic re$2,
- dynamic limit$1
override
Implementation
dc.dynamic $_invoke$3(dc.dynamic s$3, dc.dynamic re$2, dc.dynamic limit$1, ){
final dc.String s$4=(s$3 as dc.String);
final dc.Pattern re$3=(re$2 as dc.Pattern);
if(((limit$1 as dc.num)<=0)){
return (lcoc_string.split.$_invoke$2(s$4, re$3, ));
}
dc.dynamic v$1=lcoc_core.transient(lcoc_core.$_EMPTY_VECTOR, );
dc.dynamic i$1=0;
final dc.dynamic o7603$1=(lcoc_core.take.$_invoke$2(((limit$1 as dc.num)-1), (re$3.allMatches(s$4, )), ));
dc.dynamic matches$1;
if((o7603$1 is lcoc_core.ISeqable$iface)){
matches$1=((o7603$1 as lcoc_core.ISeqable$iface).$_seq$0());
}else{
matches$1=((lcoc_core.ISeqable.extensions(o7603$1, ) as lcoc_core.ISeqable$ext).$_seq$0(o7603$1, ));
}
do {
final dc.dynamic some$7481_$AUTO_$1=matches$1;
if((null==some$7481_$AUTO_$1)){
return lcoc_core.persistent$BANG_((lcoc_core.conj$BANG_.$_invoke$2(v$1, (lcoc_core.subs.$_invoke$2(s$4, i$1, )), )), );
}
final dc.dynamic vec$9383_$1=some$7481_$AUTO_$1;
final dc.dynamic o7603$2=vec$9383_$1;
late final dc.dynamic seq$9384_$1;
if((o7603$2 is lcoc_core.ISeqable$iface)){
seq$9384_$1=((o7603$2 as lcoc_core.ISeqable$iface).$_seq$0());
}else{
seq$9384_$1=((lcoc_core.ISeqable.extensions(o7603$2, ) as lcoc_core.ISeqable$ext).$_seq$0(o7603$2, ));
}
final dc.dynamic first$9385_$1=lcoc_core.first(seq$9384_$1, );
final dc.dynamic seq$9384_$2=lcoc_core.next(seq$9384_$1, );
final dc.Match m$1=(first$9385_$1 as dc.Match);
final dc.dynamic matches$2=seq$9384_$2;
v$1=(lcoc_core.conj$BANG_.$_invoke$2(v$1, (lcoc_core.subs.$_invoke$3(s$4, i$1, m$1.start, )), ));
i$1=m$1.end;
matches$1=matches$2;
continue;
} while(true);
}