Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
beantaxi
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
3 ms
·
1.
▲
by
beantaxi
2y ago
Since you asked, I find the terse version to be completely unreadable*. If I wanted to understand it, I’d end up writing out all the steps for myself anyway. There’s an asterisk here because you cherrypicked a function that is already widel
2.
▲
by
beantaxi
2y ago
They might indeed. Or a := []int{1,2,3,4} it := slices.All(a) itRev := slices.Reverse(it) itMap := slices.Map(it) itFilter := slices.Filter(it, func(i int) bool { return i % 2 == 0 }) slices.ForEach(it, func(i int)
3.
▲
by
beantaxi
2y ago
Sounds pretty interesting. If you were to write up how you tested this, I’d definitely read it.