Hello
Do you know any neat way to apply a MAX in an array?
I.e. MAX({0,3},2) will return 3
While, I wanted to return {2,3} i.e. to compare each of the {0,3} vs 2 and return the resulted array.
It would be great to do the same with substituting text, i.e. replace b with e in each of the {abc,bcd} to return {aec,ecd}
I think both the above kind of represent a more general concept: how to perform actions on each of the components of an array with a constant value without having to repeat the constant value to create an equally long array.
Thanks!
Do you know any neat way to apply a MAX in an array?
I.e. MAX({0,3},2) will return 3
While, I wanted to return {2,3} i.e. to compare each of the {0,3} vs 2 and return the resulted array.
It would be great to do the same with substituting text, i.e. replace b with e in each of the {abc,bcd} to return {aec,ecd}
I think both the above kind of represent a more general concept: how to perform actions on each of the components of an array with a constant value without having to repeat the constant value to create an equally long array.
Thanks!