rlwhitcomb / utilities

Some of my personal utility programs
MIT License
2 stars 0 forks source link

Add a "transform" function to Calc to iterate over an array or set of values and apply a function to them #606

Open rlwhitcomb opened 1 year ago

rlwhitcomb commented 1 year ago

Something like this:

define square(x) = { x * x }
a = [1, 2, 3]
b = transform(a, square)
b -> [1, 4, 9]