Hacker News new | ask | show | jobs
by daveFNbuck 1988 days ago
{2020 - x} is a single item set. nums & {2020 - x} does set intersection with nums, which restricts nums to either the item that sums with x to 2020 or nothing if there is no such item in nums.