We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4fce87f + 45dabd9 commit 7d1b08aCopy full SHA for 7d1b08a
doc/Type/Any.pod
@@ -136,7 +136,11 @@ Examples:
136
137
=head2 method flat
138
139
-Interprets the invocant as a list, flattens it, and returns that list.
+Interprets the invocant as a list, flattens it, and returns that list. Please
140
+note that C<.flat> will not solve the halting problem for you. If you flat
141
+an infinite list C<.flat> may return that infinite list, eating all your RAM
142
+in the process. Further, C<say> is not a good way to test lists because it will
143
+truncate after 100 elements.
144
145
say ((1, 2), (3)).elems; # 2
146
say ((1, 2), (3)).flat.elems; # 3
0 commit comments