3 ms·
I can't get my head around stuff like a function is a value (I can what it's doing, it's the syntax that boggles me) : val f: Int => Int = { x => x*2 } f(123)
by jebblue 14y ago
I can't get my head around stuff like a function is a value (I can what it's doing, it's the syntax that boggles me) :
val f: Int => Int = { x => x*2 }
f(123) == 246
- mrcrassic 14y agoIf you do more functional programming, it will become second-hand to you.