How can I apply a function to two elements of a list. For example:
Given the list [red,star,blue,oval,orange,hexagon] I want to apply the function to each pair functionName(red,star) functionName(blue,oval) functionName(orange,hexagon)
I'm guessing I would have to use recursion.
https://stackoverflow.com/questions/66880994/how-to-apply-a-function-to-two-elements-of-a-list-haskell March 31, 2021 at 10:52AM
没有评论:
发表评论