From: "ktsj (Kazuki Tsujimoto)" Date: 2022-02-21T02:43:39+00:00 Subject: [ruby-core:107676] [Ruby master Feature#18585] Promote find pattern to official feature Issue #18585 has been updated by ktsj (Kazuki Tsujimoto). retro (Josef ��im��nek) wrote in #note-4: > Would be PR welcomed for this change? I've already merged the patch. Thanks. ---------------------------------------- Feature #18585: Promote find pattern to official feature https://bugs.ruby-lang.org/issues/18585#change-96595 * Author: ktsj (Kazuki Tsujimoto) * Status: Closed * Priority: Normal * Assignee: ktsj (Kazuki Tsujimoto) ---------------------------------------- "Find pattern" has introduced in 3.0 and it is still marked as an experimental. I don't see any problems, so it is time to promote it to official feature. (BTW, it was useful when writing code like the following for a practical example.) ```ruby if ary in [*, {a: 0, b: 1 | 2} => i, *] ... end ``` -- https://bugs.ruby-lang.org/ Unsubscribe: