Issue #5133 has been updated by ko1 (Koichi Sasada).

Assignee changed from matz (Yukihiro Matsumoto) to mrkn (Kenta Murata)
Target version changed from 2.0.0 to next minor

?????????????????????????????????????????????
mrkn ????????????????????????説?????????next minor ?????? 2.0 ????????????????
----------------------------------------
Feature #5133: Array#unzip as an alias of Array#transpose
https://bugs.ruby-lang.org/issues/5133#change-31667

Author: mrkn (Kenta Murata)
Status: Assigned
Priority: Normal
Assignee: mrkn (Kenta Murata)
Category: core
Target version: next minor


Array#zip ??????? Array#transpose ???????????????
?????対???????????常???????????????????????????????

Haskell ???? zip ?????????????????????? unzip ???????????????????????
unzip ????????????????????zip ?????????????????????????????????????
(transpose ?????????) ??????????????????????????????????????????

?????????????? Array#unzip ??? Array#transpose ?????????????
????????????????????

以???????????????:

diff --git a/array.c b/array.c
index 8caad66..dc411b7 100644
--- a/array.c
+++ b/array.c
@@ -4720,6 +4720,7 @@ Init_Array(void)
     rb_define_method(rb_cArray, "reject!", rb_ary_reject_bang, 0);
     rb_define_method(rb_cArray, "zip", rb_ary_zip, -1);
     rb_define_method(rb_cArray, "transpose", rb_ary_transpose, 0);
+    rb_define_alias(rb_cArray, "unzip", "transpose");
     rb_define_method(rb_cArray, "replace", rb_ary_replace, 1);
     rb_define_method(rb_cArray, "clear", rb_ary_clear, 0);
     rb_define_method(rb_cArray, "fill", rb_ary_fill, -1);



-- 
http://bugs.ruby-lang.org/