barbiturat
8/1/2017 - 11:00 PM

Problem: Do any of these strings appear in another list? (point-free style)

Problem: Do any of these strings appear in another list? (point-free style)

// var overlaps = (spec, list) => !!find(contains(__, list), spec);
var overlaps = useWith(compose(Boolean, call), [flip(find), flip(contains)]);

var list = ['node', 'script.js', '-v']
overlaps(['-v', '--verbose'], list) //-> true