Yay! (enthusiastic about): Scala, Haskell, C++, Rust, ScalaFX, Polymer framework & WebComponents, Webp, HTTP 2.0, PostgreSQL, Gentoo Linux, Gnome Shell, x32 ABI, Wayland

Nay! (would rather avoid): PHP, Matlab, JavaEE, Angular.js, Ubuntu, KDE

Apr
23
comment PHP array delete by value (not key)
@dotancohen: Which part of "performance is implementation dependent", don't you understand? Did you test the function with HHVM, PHP 7, PHP 5, ...? And even if it is so today, it might not be in the future. Second point: My function produces a new copy of the array, while the competing one mutates the existing one. Which is not the same.
Mar
29
awarded Popular Question
Mar
26
awarded Necromancer
Mar
23
answered How to remove an item from a list in Scala having only its index?
Mar
20
awarded Great Answer
Mar
9
revised in_array multiple values
added 2 characters in body
Mar
2
answered Chained Assignment vs. Single assignment
Feb
16
awarded Custodian
Feb
16
reviewed No Action Needed PostgreSQL: How to insert multiple values without multiple selects?
Feb
16
awarded Nice Answer
Feb
15
awarded Yearling
Feb
13
revised in_array multiple values
added 143 characters in body
Feb
13
revised Does ruby have the ability to split a directory string?
added 149 characters in body
Feb
12
comment How to get a random element from a Set in Scala
@justinhj: Nope, your solution is O(n) space again, since drop on Set causes a set with the remaining elements to be created. You have to use iterators, because they are non-strict.
Feb
12
revised How to get a random element from a Set in Scala
added 35 characters in body
Feb
12
comment Elegant way to invert a map in Scala
Now thanks to you, even a few characters shorter. The difference now is that you get Sets instead of Lists as before.
Feb
12
revised Elegant way to invert a map in Scala
deleted 7 characters in body
Feb
4
awarded Famous Question
Feb
1
revised How to remove an item from a list in Scala having only its index?
added 133 characters in body
Jan
26
awarded Guru
1 2 3 4 5