Find and extract an expression argument with a given expression head
I want to write an efficient script that will take as an input a JSL expression and:Find an argument in that expression that has a specific expression headSubstitute that argument with a modified version of that argument Example: I have this expression my_expr=Expr(
...
Fit Model(
Y( :y ),
Effects( :Drug, :x ),
Personality( "Standard Least Squares" ),
Emphasis( "Effect Leverage" ),
Run(
:y << {S