Don’t know if it’s helpful, but you can actually store functions in a dictionary.
That way you can apply different functions depending on some kind of metric/boolean value etc.
6 Likes
Don’t know if it’s helpful, but you can actually store functions in a dictionary.
That way you can apply different functions depending on some kind of metric/boolean value etc.