I'm trying to define a function that is of this form:
f1[gr_,clr_] := Graphics@Style[gr,clr]
f2[gr1_, clr1_, gr2_, clr2_ (*etc*)] := Show[{f1[gr1,clr1], f1[gr2,clr2] (*etc*)}, "showOpts"]
Ηere, gr
is a defined graphic, and clr
is a color. I'm trying to have the arguments in f2
not require braces, just like one would use arguments in Graphics
. I already have options for Show
that are the same for every iteration of f1
, but I'm having trouble with sequencing this one. `
f2 = List /* OperatorApplied[Partition][2] /* Map[Apply[f1]] /* Show
. $\endgroup$Graphics
takes one argument, a list of styles and objects, not a var-arg" $\endgroup$