Can someone create 2 votes?:
- [-] for array_pop
- [+] for array_push

I don't have an account and rights; and let the discussion have a practical
outcome (whether with a positive or negative result)?

D. K.


ne 14. 9. 2025 o 1:45 Morgan <[email protected]> napísal(a):

> On 2025-09-13 22:21, Rowan Tommins [IMSoP] wrote:
> > On 12 September 2025 20:02:04 BST, "Dušan Kreheľ" <[email protected]>
> wrote:
> >
> > Since we have an extremely well-established array_push shorthand, so
> don't need a new one, we could perhaps have "<" for "at start", and "-" for
> "pop":
> >
> > $foo[<] = $toUnshift;
> > $shifted = $foo[-<];
> >
>
> Which looks like it would
>
> $foo[0] $foo[1] $foo[2] <-- put $toUnShift here
>
> rather than
>
> put $toUnshift here --> $foo[0] $foo[1] $foo[2]
>

Reply via email to