News for hackers. Stuff that matters.
Re:Achieving High-Performance the Functional Way by Iwan-Zotow on Tuesday March 07, 2023 @01:40PM (#35059263)
Assignment Expression were added, so you could do

x = 1 y = 2

q = list(map(lambda t: ( tx := tx, ty := ty, tx+ty )[-1], [1, 2, 3]))

print(q)

There are no comments on this comment yet.