Membership in a list (Set)
Dec 4, 2025 · 1 min read · Using Set is probably the most convenient way to check for membership in a list since values are stored like in a Hash. Set uses the === method to check membership, which allows: case 'apple' when Set['bean', 'cauliflower', 'carrot'] "vegetable" wh...
Join discussion

