> units[s] = unitlist.filter!(x => any!(y => (s == y))); And you don't need a pair of ( ): units[s] = unitlist.filter!(x => any!(y => s == y)); And now you need to feed any with some range. Bye, bearophile