Well, I have a beginner problem (for me, atm, is a very advanced problem
I have a list of tuples, like:
x = [("a","b","c"),("d","e","f")]
… and I need to change, let’s say, the "e" for "xyz". Can it be done?I’ve tried to apply pattern matching, but with no success.
With tuples of 2 elements it’s easier (by using fst and snd)… but I’m having lots of problems with tuples of 3 elements.
Is pattern matching the right way to solve this?
Any help will be welcome.
Thanks in advanced.

New Topic/Question
Reply


MultiQuote



|