Do we need multiple values? If so, what's the best way to make it integrate well with the language? Right now, it's not.
As an example, if I have a function f that returns two values, and I want only the first returned value to get passed to function g, the best I can do is:
(let-values ([(x _) (f foo bar)])
(g x))
Is there anything better that we can do?
Do we need multiple values? If so, what's the best way to make it integrate well with the language? Right now, it's not.
As an example, if I have a function
fthat returns two values, and I want only the first returned value to get passed to functiong, the best I can do is:Is there anything better that we can do?