|
|
|
|
|
by herbst
3447 days ago
|
|
Just FYI why i lold at this beeing a fitting example: File.read("in.txt").split("\n").sort.map(&:trim).uniq
No need for X temporary variables and N lines of code in ruby.Also notice the better readability as everything happens from left to right? |
|