[perl #131783] [LTA] :delete holes in Arrays get turned to Mus when coercing to List or Slip

2017-10-10 Thread Zoffix Znet via RT
On Mon, 24 Jul 2017 01:54:53 -0700, elizabeth wrote: > > > On 23 Jul 2017, at 22:27, Sam S. via RT > follo...@perl.org> wrote: > > > >> Which then goes back to: what is the use case of Slipping an Array? > > > > Same as slipping any other type of Iterable: Fine-grained, elegant > > flattening

[perl #131783] [LTA] :delete holes in Arrays get turned to Mus when coercing to List or Slip

2017-10-10 Thread Zoffix Znet via RT
On Mon, 24 Jul 2017 01:54:53 -0700, elizabeth wrote: > > > On 23 Jul 2017, at 22:27, Sam S. via RT > follo...@perl.org> wrote: > > > >> Which then goes back to: what is the use case of Slipping an Array? > > > > Same as slipping any other type of Iterable: Fine-grained, elegant > > flattening

Re: [perl #131783] [LTA] :delete holes in Arrays get turned to Mus when coercing to List or Slip

2017-07-24 Thread Elizabeth Mattijsen via RT
> On 23 Jul 2017, at 22:27, Sam S. via RT wrote: > >> Which then goes back to: what is the use case of Slipping an Array? > > Same as slipping any other type of Iterable: Fine-grained, elegant flattening > and concatenating. > > Compare: > > my @all = flat

[perl #131783] [LTA] :delete holes in Arrays get turned to Mus when coercing to List or Slip

2017-07-23 Thread Sam S. via RT
> Which then goes back to: what is the use case of Slipping an Array? Same as slipping any other type of Iterable: Fine-grained, elegant flattening and concatenating. Compare: my @all = flat $first, @rest; my @all = $first, |@rest; When you *know* that $first is a Scalar and @rest is an

Re: [perl #131783] [LTA] :delete holes in Arrays get turned to Mus when coercing to List or Slip

2017-07-23 Thread Elizabeth Mattijsen via RT
> On 23 Jul 2017, at 03:48, Zoffix Znet (via RT) > wrote: > > # New Ticket Created by Zoffix Znet > # Please include the string: [perl #131783] > # in the subject line of all future correspondence about this issue. > #

Re: [perl #131783] [LTA] :delete holes in Arrays get turned to Mus when coercing to List or Slip

2017-07-23 Thread Elizabeth Mattijsen
> On 23 Jul 2017, at 03:48, Zoffix Znet (via RT) > wrote: > > # New Ticket Created by Zoffix Znet > # Please include the string: [perl #131783] > # in the subject line of all future correspondence about this issue. > #

[perl #131783] [LTA] :delete holes in Arrays get turned to Mus when coercing to List or Slip

2017-07-22 Thread Aleks-Daniel Jakimenko-Aleksejev via RT
Perhaps also worth noting that this applies to other holes as well, e.g. those created by extending an array: my @a = 42; @a[5] = 49; say |@a # 42(Mu)(Mu)(Mu)(Mu)49 In fact, this the actual problem the user had. On 2017-07-22 18:52:03, c...@zoffix.com wrote: > On Sat, 22 Jul 2017 18:48:38

[perl #131783] [LTA] :delete holes in Arrays get turned to Mus when coercing to List or Slip

2017-07-22 Thread Zoffix Znet via RT
On Sat, 22 Jul 2017 18:48:38 -0700, c...@zoffix.com wrote: > The current behaviour kinda makes sense when you squint at it, but > today we had a user[^1]who was surprised by it, so I'm filing it as a > ticket, if maybe there's some Better Way this can be done with. > > When you :delete an element

[perl #131783] [LTA] :delete holes in Arrays get turned to Mus when coercing to List or Slip

2017-07-22 Thread Zoffix Znet via RT
On Sat, 22 Jul 2017 18:48:38 -0700, c...@zoffix.com wrote: > The current behaviour kinda makes sense when you squint at it, but > today we had a user[^1]who was surprised by it, so I'm filing it as a > ticket, if maybe there's some Better Way this can be done with. > > When you :delete an element

[perl #131783] [LTA] :delete holes in Arrays get turned to Mus when coercing to List or Slip

2017-07-22 Thread via RT
# New Ticket Created by Zoffix Znet # Please include the string: [perl #131783] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=131783 > The current behaviour kinda makes sense when you squint at it, but today we had a