1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

update doc.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34514 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
akr 2012-02-09 13:18:26 +00:00
parent c7f16b8662
commit 3b1276eb39

1
enum.c
View file

@ -445,6 +445,7 @@ flat_map_i(VALUE i, VALUE ary, int argc, VALUE *argv)
*
* 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]
*
*/