Thread

Zero-JS Hypermedia Browser

Relays: 5
Replies: 0
Generated: 00:03:15
const f = (y) => (x) => x + 2 * y; // const f = (y) => ((x) => x + 2 * y); // same const g1 = f(1); const g2 = f(2); console.log(g1(1)); //=> 3 console.log(g1(2)); //=> 4 console.log(g2(1)); //=> 5 console.log(g2(2)); //=> 6
2025-12-07 12:24:56 from 1 relay(s)
Login to reply