Attempting to resolve the XPathFunction and Scala int problem
09 Sep 2010
As previously noted, there are difficulties returning a Scala "primitive" type.
A view might provide a way to resolve that problem
Note the explicit return type on the f1ToO function, which is needed to avoid an error indicating that recursive functions need a return type!
Unfortunately, this approach fails because there are two implicit conversions in Predef.
This problem can be resolved by explicitly specifying the desired final type
It is fortunate that only a few such mappings are needed to cover the impacted Scala types