Skip to content

Commit 6e14828

Browse files
authored
Remove needless prose in .flat
- Flat returns a Seq with an iterator fed by original stuff, so it solving any halting problems is irrelevant. - Flat used to have a bug where it was failing to propagate .is-lazy in certain cases, causing full reification, which might be what the original author hit upon, to surmise there are any issues with flattening infinite things. - Fixes #1202
1 parent 5dfc1ef commit 6e14828

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

doc/Type/Any.pod6

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -185,10 +185,6 @@ Defined as:
185185
method flat(--> Seq:D) is nodal
186186
187187
Interprets the invocant as a list, flattens it, and returns that list.
188-
Please note that C<.flat> will not solve the
189-
L<halting problem|https://en.wikipedia.org/wiki/Halting_problem> for you.
190-
If you flat an infinite list C<.flat> may return that infinite list, eating
191-
all your RAM in the process.
192188
193189
say ((1, 2), (3)).elems; # OUTPUT: «2␤»
194190
say ((1, 2), (3)).flat.elems; # OUTPUT: «3␤»

0 commit comments

Comments
 (0)