I m kind of new in functional programming If I have 2 arrays of strings, is there a way using map, filter and zip to return the matching values ? I know a dirty way to do it, by iterating in each array and comapring the values to find matches but there must be a clean way to do it.
so var example i have the following arrays :
array1 = ["max","julie","helmut","igor"] array2 = ["sophie","igor"]
and I would like to retrieve "igor" as a value
another thing, if there s more than one match, witch in my case is not possible, I would like to know how to return a string of matches (just for my own understanding)
Thanks for your help :)
