ruby-changes:22465
From: akr <ko1@a...>
Date: Thu, 9 Feb 2012 22:20:22 +0900 (JST)
Subject: [ruby-changes:22465] akr:r34514 (trunk): update doc.
akr 2012-02-09 22:18:26 +0900 (Thu, 09 Feb 2012) New Revision: 34514 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=34514 Log: update doc. Modified files: trunk/enum.c Index: enum.c =================================================================== --- enum.c (revision 34513) +++ enum.c (revision 34514) @@ -445,6 +445,7 @@ * * If no block is given, an enumerator is returned instead. * + * [1, 2, 3, 4].flat_map { |e| [e, -e] } #=> [1, -1, 2, -2, 3, -3, 4, -4] * [[1, 2], [3, 4]].flat_map { |e| e + [100] } #=> [1, 2, 100, 3, 4, 100] * */ -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/