Hacker News with Generative AI: Functions

N-Params vs. Single Param (carlos-menezes.com)
When writing functions in TypeScript (and, truthfully, any language that does not support named parameters), you either pass arguments individually (n params) or group them into a single object.
Mac Numbers now supports LAMBDA functions and MAP (apple.com)
The MAP function maps each value in an array to a new value determined by a LAMBDA function and returns a new array.
Fun with Go Iterators (xnacly.me)
Go version 1.23 added iterator support 1 and the iter package 2. We can now loop over constants, containers (maps, slices, arrays, strings) and functions. At first I found the iterator creation clunky, while consuming the iterator seems straightforward.
What Can a Coffee Machine Teach You About Python's Functions? (thepythoncodingstack.com)
Let me tell you about one of my favourite analogies
The weird of function-local types in Rust (elastio.github.io)
How to Compose Functions That Take Multiple Parameters: Epic Guide (jrsinclair.com)
Run Functions in Another Stack with Zig (gitlab.io)
Gompertz Function (wikipedia.org)