Consider the two following string sequences:
Salutation = ["Hello", "Hi"]
Names = ["Alice", "Matt", "Franck", "Julia"]
I am looking for clean way to merge those sequences into
["Hello_Alice", "Hi_Alice", "Hello_Matt", "Hi_Matt", "Hello_Franck", "Hi_Franck", "Hello_Julia", "Hi_Julia"]
or with whatever separator.
The equivalent in R would be:
c(outer(Salutations, Names, paste, sep="_"))