Is there a way to drop the first element of a 3 element tuple, so I get a 2 element tuple without having to make another function for this purpose?
(a,b,c)->(b,c)
Basically I have to use a function, which creates a 3 element tuple and then I have to use a function that only uses the last two element of it.
Thank you for your answers.
Your question almost has the required function itself!
is the function you need. It is an “anonymous” function defined on the fly, you need not give it a name. So for example if you have
You could do
to get the second and third component of
someFunc someValue.