News for hackers. Stuff that matters.
Re:More developers use Linux than Mac, according to 2022 Sta... by TylerE on Wednesday December 28, 2022 @04:12PM (#34166027)
You couldn’t do something like (a.b).c?

Still hackt, but a one liner at least

Disclaimer: have never touched matlab

Re:More developers use Linux than Mac, according to 2022 Sta... by 323 on Wednesday December 28, 2022 @05:14PM (#34166742)
So I googled that:

    setdiff(1:3, randi(3))(randi(2))
> One must factor out the resulting list from setdiff into a separate variable first:

    t = setdiff(1:3, randi(3));
    t(randi(2))
> This is so medieval even by 1980s standards...

https://www.mathworks.com/matlabcentral/answers/1684819-why-...