• dearblue's avatar
    Support `undef` for `mrb_ary_splice()` instead of `[]` · 26eb2954
    dearblue authored
    When removing elements from an array, it is possible to avoid creating
    an empty array.
    
    Before this patch:
    
    ```c
    mrb_ary_splice(mrb, ary, head, len, mrb_ary_new(mrb));
    ```
    
    After this patch:
    
    ```c
    mrb_ary_splice(mrb, ary, head, len, mrb_undef_value());
    ```
    26eb2954
array.c 34 KB