all_pairs = function (a1, a2, f) { each(a1, e1 => each(a2, e2 => f(e1, e2))) } all_pairs (["HTTP","FTP"], ["Wifi", "Ethernet"], (e1, e2) => print (e1 + ", " + e2))
Output