Rok Kralj

Slovenia

rok-kralj.net

Age: 24

Currently I am computer science & maths student and computer programmer. I live in Slovenia, if you don't know where that is, google it up. :)

I am a very innovative person, always searching for the way to change something for better. I have a lot of ideas, so most of my projects are for my inner child, not commercial. As a true Sagittarius I rarely finish a project, because I get new idea before I manage to implement the last one.

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

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

Github: https://github.com/strelec

1h
revised How to get a random element from a Set in Scala
added 35 characters in body
2h
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.
2h
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
Jan
25
revised PHP array delete by value (not key)
deleted 12 characters in body
Jan
17
answered Odd behavior of mutable.ListMap
Jan
16
answered Scala: Array[Array[Int]] to Array[Int]
Jan
13
answered Scala: Cartesian product between a variable number of Arrays
Jan
9
revised Scala type mismatch when adding an element to an array
added 95 characters in body
Jan
9
answered Scala type mismatch when adding an element to an array
Jan
9
comment Iterator over all partitions into k groups?
Actually, his answer is the only correct. The question is asking for a list partitions, not set partitions.
Dec
25
revised Converting List to Map using keys in Scala
deleted 9 characters in body
Dec
25
comment Converting List to Map using keys in Scala
Yours uses appending to string. Strings in Scala are immutable, therefore the whole string is copied on append. It is better to collect all the strings and join them in one go.
Dec
25
answered Converting List to Map using keys in Scala
Dec
21
comment PHP array delete by value (not key)
@KrzysztofPrzygoda: He doesn't know what he is talking about. The complexity of this functions is IMPLEMENTATION and VERSION dependant.
Nov
22
comment Scala compiler optimization for immutability
defs are dangerous, they get recomputed on each access and they cause additional .class files to be created. And I suggest you do adopt this style instead by limiting the scope. That has an additional advantage of putting programmer's mind on ease, so he can be sure he's done with that value, and is not going to be secretly used 100 lines down the execution path.
Nov
22
answered Scala compiler optimization for immutability
Nov
20
awarded Constituent
1 2 3 4 5