# New Ticket Created by  Jules Field 
# Please include the string:  [perl #127121]
# in the subject line of all future correspondence about this issue. 
# <URL: https://rt.perl.org/Ticket/Display.html?id=127121 >


flat has no effect on arrays, but works fine on lists:

> ((1,2),3).flat.perl
(1, 2, 3).Seq      <== Correct

> [[1,2],3].flat.perl
($[1, 2], 3).Seq     <== Failed

> [(1,2),3].flat.perl
($(1, 2), 3).Seq     <== Failed

> ([1,2],3).flat.perl
(1, 2, 3).Seq      <== Correct

> [(1,2),3].List.flat.perl
(1, 2, 3).Seq      <== Coerced to a list before flat

Running on OS X:
$ perl6 --version
This is Rakudo version 2015.12 built on MoarVM version 2015.12
implementing Perl 6.c.

Many thanks!
-- 
ju...@jules.uk

Reply via email to