Knowing each other's kind, colour or just behaving and understanding reality in a similar way provide a compass for finding a group to belong to. A specific pattern of acting and thinking is clear to those who have the same internal or external 'code'. The English proverb literally and metaphorically reflects this mechanism of gathering together the same or similar ideas, tastes, looks, origins, features and individuals.
wstecz