Server IP : 66.29.132.122 / Your IP : 3.144.19.163 Web Server : LiteSpeed System : Linux business142.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64 User : admazpex ( 531) PHP Version : 7.2.34 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /proc/self/root/opt/alt/ruby18/share/ri/1.8/system/Enumerable/ |
Upload File : |
--- !ruby/object:RI::MethodDescription aliases: [] block_params: comment: - !ruby/struct:SM::Flow::P body: Converts any arguments to arrays, then merges elements of <em>enum</em> with corresponding elements from each argument. This generates a sequence of <tt>enum#size</tt> <em>n</em>-element arrays, where <em>n</em> is one more that the count of arguments. If the size of any argument is less than <tt>enum#size</tt>, <tt>nil</tt> values are supplied. If a block given, it is invoked for each output array, otherwise an array of arrays is returned. - !ruby/struct:SM::Flow::VERB body: " a = [ 4, 5, 6 ]\n b = [ 7, 8, 9 ]\n\n (1..3).zip(a, b) #=> [[1, 4, 7], [2, 5, 8], [3, 6, 9]]\n "cat\\ndog".zip([1]) #=> [["cat\\n", 1], ["dog", nil]]\n (1..3).zip #=> [[1], [2], [3]]\n" full_name: Enumerable#zip is_singleton: false name: zip params: | enum.zip(arg, ...) => array enum.zip(arg, ...) {|arr| block } => nil visibility: public