For example suppose I have
val sortedSignal = signal.sortBy(_.variable)
And I wish to apply Math.abs to variable before sorting. What is the correct syntax for doing this?
signal.sortBy(x=>Math.abs(x.variable))
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With