From: ko1@... Date: 2019-07-29T08:12:31+00:00 Subject: [ruby-core:93986] [Ruby master Feature#15918] Pattern matching for Set Issue #15918 has been updated by ko1 (Koichi Sasada). Assignee set to ktsj (Kazuki Tsujimoto) ---------------------------------------- Feature #15918: Pattern matching for Set https://bugs.ruby-lang.org/issues/15918#change-80180 * Author: marcandre (Marc-Andre Lafortune) * Status: Open * Priority: Normal * Assignee: ktsj (Kazuki Tsujimoto) * Target version: ---------------------------------------- Currently, `Set` does not respond to `deconstruct`. Shouldn't we implement it using `to_a`? ``` require 'set' case Set[1, 2, 3] in [1, 2, 3] p "match" else p "no match" end # => "no match", should be "match" ``` -- https://bugs.ruby-lang.org/ Unsubscribe: