James Strachan
|
d604272744
|
zapped the redundant getOrElse method as the ?: does indeed work with lazy expressions (no function definition required) - thanks for spotting this Andrey! :)
|
2012-02-09 06:25:52 +00:00 |
|
James Strachan
|
659fceecbe
|
removed unnecessary getOrElse(value) method as we can use ?: (which is neater!) though shame it doesn't work for lazy values, passing a function body which is invoked if the value is not null
|
2012-02-08 11:45:59 +00:00 |
|
James Strachan
|
04220935e0
|
enabled the test for T?.getOrElse and fixed up minor glitch in assertEquals
|
2012-02-08 07:57:18 +00:00 |
|
James Strachan
|
5057bf732e
|
added a helper method for easily converting from a nullable type to a non nullable type with a non-lazy value, or lazy factory function
|
2012-02-08 07:57:18 +00:00 |
|