News for hackers. Stuff that matters.
Re:Matt Godbolt sold me on Rust by showing me C++ by tmoertel on Wednesday May 07, 2025 @08:30AM (#43914803)
Mathematica has this:

    In[1]:  Map((1 + #1)&, {a, b, c})
    Out[1]: {a + 1, b + 1, c + 1}
See https://reference.wolfram.com/language/ref/Function.html.en for the full story.
Re:Matt Godbolt sold me on Rust by showing me C++ by zelphirkalt on Wednesday May 07, 2025 @09:29PM (#43922222)
What is that & doing there? I thought it looks neat, but then that & ...
Re:Matt Godbolt sold me on Rust by showing me C++ by tmoertel on Friday May 09, 2025 @07:00PM (#43941722)
The & is a postfix operator that converts an expression into an anonymous function. See “Pure Functions”:

https://reference.wolfram.com/language/tutorial/FunctionalOp...