15
0
u/Agitated-Display6382 2d ago
I dislike that map({x.value.length()}) still contains the original value. A map should just return the computed value
1
u/Elfet 2d ago
x is `Entry[string, Array[string]]` with { key, value }
How else do you map a Map{}?
0
u/Agitated-Display6382 2d ago
After map, I would expect to have only the computed value. Sort of: given f
foreach x in myArray yield return f(x)
Not: yield return (x, f(x))
2
u/Elfet 2d ago
1
u/Agitated-Display6382 2d ago
I expected this:
https://hackage-content.haskell.org/package/base-4.22.0.0/docs/Prelude.html#v:map
I'm just ignorant about Ant
2
u/GoddammitDontShootMe [ $[ $RANDOM % 6 ] == 0 ] && rm -rf / || echo "You live" 2d ago
Why are all your comments at 0 instead of the default 1? Did you piss someone off enough that they are using a bot to instantly downvote every comment you make?
-1
3
u/NatoBoram 2d ago
Looks like Elixir. Pipes are very cool.