File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -170,10 +170,11 @@ will try to descend into the element if that element implements C<Iterable>.
170
170
171
171
= head2 method flat
172
172
173
- Interprets the invocant as a list, flattens it, and returns that list. Please
174
- note that C < .flat > will not solve the halting problem for you. If you flat
175
- an infinite list C < .flat > may return that infinite list, eating all your RAM
176
- in the process.
173
+ Interprets the invocant as a list, flattens it, and returns that list.
174
+ Please note that C < .flat > will not solve the
175
+ L < halting problem|https://en.wikipedia.org/wiki/Halting_problem > for you.
176
+ If you flat an infinite list C < .flat > may return that infinite list, eating
177
+ all your RAM in the process.
177
178
178
179
say ((1, 2), (3)).elems; # 2
179
180
say ((1, 2), (3)).flat.elems; # 3
You can’t perform that action at this time.
0 commit comments