$_invoke$vararg method

dynamic $_invoke$vararg(
  1. dynamic $AMPERSAND_form$1,
  2. dynamic $AMPERSAND_env$1,
  3. dynamic expr$1,
  4. dynamic forms$1,
)
override

Implementation

dc.dynamic $_invoke$vararg(dc.dynamic $AMPERSAND_form$1, dc.dynamic $AMPERSAND_env$1, dc.dynamic expr$1, dc.dynamic forms$1, ){
late final dc.dynamic g$1;
if((lcoc_core.gensym is dc.Function)){
g$1=(lcoc_core.gensym as dc.Function)();
}else if((lcoc_core.gensym is lcoc_core.IFn$iface)){
g$1=((lcoc_core.gensym as lcoc_core.IFn$iface).$_invoke$0());
}else{
g$1=(lcoc_core.IFn.extensions(lcoc_core.gensym, ).$_invoke$0(lcoc_core.gensym, ));
}
final dc.dynamic steps$1=(lcoc_core.map.$_invoke$2((dc.dynamic step$1, ){
final dc.dynamic arg$2=(lcoc_core.list.$_invoke$1((lcoc_core.symbol.$_invoke$2(null, "if", )), ));
final dc.dynamic o7603$1=(lcoc_core.concat.$_invoke$2((lcoc_core.list.$_invoke$1((lcoc_core.symbol.$_invoke$2("cljd.core", "nil?", )), )), (lcoc_core.list.$_invoke$1(g$1, )), ));
late final dc.dynamic $if_$1;
if((o7603$1 is lcoc_core.ISeqable$iface)){
$if_$1=((o7603$1 as lcoc_core.ISeqable$iface).$_seq$0());
}else{
$if_$1=((lcoc_core.ISeqable.extensions(o7603$1, ) as lcoc_core.ISeqable$ext).$_seq$0(o7603$1, ));
}
final dc.dynamic $2=(lcoc_core.list.$_invoke$1($if_$1, ));
final dc.dynamic arg$1=(lcoc_core.list.$_invoke$1(null, ));
final dc.dynamic o7603$2=(lcoc_core.concat.$_invoke$3((lcoc_core.list.$_invoke$1((lcoc_core.symbol.$_invoke$2("cljd.core", "->", )), )), (lcoc_core.list.$_invoke$1(g$1, )), (lcoc_core.list.$_invoke$1(step$1, )), ));
late final dc.dynamic $if_$2;
if((o7603$2 is lcoc_core.ISeqable$iface)){
$if_$2=((o7603$2 as lcoc_core.ISeqable$iface).$_seq$0());
}else{
$if_$2=((lcoc_core.ISeqable.extensions(o7603$2, ) as lcoc_core.ISeqable$ext).$_seq$0(o7603$2, ));
}
final dc.dynamic $1=(lcoc_core.list.$_invoke$1($if_$2, ));
final dc.dynamic o7603$3=(lcoc_core.concat.$_invoke$4(arg$2, $2, arg$1, $1, ));
if((o7603$3 is lcoc_core.ISeqable$iface)){
return ((o7603$3 as lcoc_core.ISeqable$iface).$_seq$0());
}
return ((lcoc_core.ISeqable.extensions(o7603$3, ) as lcoc_core.ISeqable$ext).$_seq$0(o7603$3, ));
}, forms$1, ));
final dc.dynamic arg$3=(lcoc_core.list.$_invoke$1((lcoc_core.symbol.$_invoke$2("cljd.core", "let", )), ));
final dc.dynamic o7603$4=(lcoc_core.concat.$_invoke$3((lcoc_core.list.$_invoke$1(g$1, )), (lcoc_core.list.$_invoke$1(expr$1, )), (lcoc_core.interleave.$_invoke$2((lcoc_core.repeat.$_invoke$1(g$1, )), lcoc_core.butlast(steps$1, ), )), ));
late final dc.dynamic $if_$3;
if((o7603$4 is lcoc_core.ISeqable$iface)){
$if_$3=((o7603$4 as lcoc_core.ISeqable$iface).$_seq$0());
}else{
$if_$3=((lcoc_core.ISeqable.extensions(o7603$4, ) as lcoc_core.ISeqable$ext).$_seq$0(o7603$4, ));
}
final dc.dynamic $3=(lcoc_core.apply.$_invoke$2(lcoc_core.vector, $if_$3, ));
final dc.dynamic $5=(lcoc_core.list.$_invoke$1($3, ));
final dc.dynamic o7603$5=steps$1;
late final dc.dynamic $if_$4;
if((o7603$5 is lcoc_core.ISeqable$iface)){
$if_$4=((o7603$5 as lcoc_core.ISeqable$iface).$_seq$0());
}else{
$if_$4=((lcoc_core.ISeqable.extensions(o7603$5, ) as lcoc_core.ISeqable$ext).$_seq$0(o7603$5, ));
}
late final dc.bool $if_$5;
if((($if_$4!=false)&&($if_$4!=null))){
$if_$5=false;
}else{
$if_$5=true;
}
late final dc.dynamic $if_$6;
if($if_$5){
$if_$6=g$1;
}else{
$if_$6=lcoc_core.last(steps$1, );
}
final dc.dynamic $4=(lcoc_core.list.$_invoke$1($if_$6, ));
final dc.dynamic o7603$6=(lcoc_core.concat.$_invoke$3(arg$3, $5, $4, ));
if((o7603$6 is lcoc_core.ISeqable$iface)){
return ((o7603$6 as lcoc_core.ISeqable$iface).$_seq$0());
}
return ((lcoc_core.ISeqable.extensions(o7603$6, ) as lcoc_core.ISeqable$ext).$_seq$0(o7603$6, ));
}