4 ms·
The javascript example of list.reduce((x,y)=>Math.max(x,y)) should have been just Math.max(...list)
by beiller 7y ago
The javascript example of list.reduce((x,y)=>Math.max(x,y)) should have been just Math.max(...list)
- saagarjha 7y agoSuggested already, with a rebuttal: https://news.ycombinator.com/item?id=22523151 https://news.ycombinator.com/item?id=22523151
- codegladiator 7y ago> list.max(Math.ordering)