mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
6c4d98be8b
add support for find patterns in case/in expressions: - [*pre, elem, *post] - find elem anywhere in array - [*, elem, *] - anonymous rest (discarded) - [*pre, a, b, *post] - multiple middle elements implementation includes: - grammar rules for find patterns with p_args, p_rest in parse.y - NODE_PAT_FIND codegen with iterative search loop - pre/post variable binding via range slicing - p_const rule to prevent conflict with array literals Co-authored-by: Claude <noreply@anthropic.com>