generic parseint = {some_str -> magic_algorithm(str) }
And, yes, you can make things generic only in the return type, and have that inferred.
And, yes, you can make things generic only in the return type, and have that inferred.