For example suppose I have
val sortedSignal =开发者_如何学C 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))
For example suppose I have
val sortedSignal =开发者_如何学C 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))
上一篇:体外碎石多少钱啊??
魏晨《弟兄》歌词?:下一篇
精彩评论