This is in the context of writing a function description. Let's say I have the function:
fromMaybe :: a -> Maybe a -> a
fromMaybe _ (Just x) = x
fromMaybe d Nothing = d
Would it be correct to say that this function "converts an object of type 'Maybe a' into type 'a' by using a fallback argument"?
Of course, in Haskell, nothing is actually really converted, something else entirely is being returned. That is the background of this question. Is the usage of the term 'convert' OK to use? If so, when is it not?
What if I have a function that takes a list of Integers and returns a list that is exactly the same, but with Floats. Would it be proper to say: "this function converts a list of Integers into a list of Floats"?