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 ??????с?????????
?????絲上???≫????????絽吾???????????c????????????障????????

Haskell ???? zip ???????????????∽?違?????? unzip ??????????????????障?????
unzip ????????????????????zip ????????????????????????????c?????????
(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/