News for hackers. Stuff that matters.
Re:Merry Christmas to HN by mrwnmonm on Thursday December 25, 2014 @03:38AM (#8795838)
explain :)
Re:Merry Christmas to HN by krat0sprakhar on Thursday December 25, 2014 @03:47AM (#8795850)
Copy-paste in your browser console -

    // Merry Christmas
    console.log(
      [45,69,82,82,89,0,35,72,82,73,83,84,77,65,83,1]
      .map(function(i) { return i + 32; })
      .map(function(i) { return String.fromCharCode(i); })
      .join("")
    );
Re:Merry Christmas to HN by hundunpao on Thursday December 25, 2014 @03:46AM (#8795848)
Javascript

  [45, 69, 82, 82, 89, 0, 35, 72, 82, 73, 83, 84, 77, 65, 83, 1].map(function(x){ return String.fromCharCode(x +32)}).join('')
Re:Merry Christmas to HN by jarcane on Thursday December 25, 2014 @03:54AM (#8795860)

  ; Racket version
  (apply string (map (λ (x) (integer->char (+ x 32))) '(45 69 82 82 89 0 35 72 82 73 83 84 77 65 83 1)))
Re:Merry Christmas to HN by zuppy on Thursday December 25, 2014 @03:50AM (#8795852)
I'm to lazy to do the math (substract and look for ascii code), but it should be "Merry Christmas". clue: look where "r" is i the string.
Re:Merry Christmas to HN by awhitty on Thursday December 25, 2014 @03:50AM (#8795853)
Python equivalent for convenience:

  map(lambda x: chr (x + 32), [45,69,82,82,89,0,35,72,82,73,83,84,77,65,83,1])
Just paste it into a python terminal and run it :)
Re:Merry Christmas to HN by heinrich5991 on Thursday December 25, 2014 @05:42AM (#8795990)
Python 2/3 compatiblity:

    "".join(map(lambda x: chr (x + 32), [45,69,82,82,89,0,35,72,82,73,83,84,77,65,83,1]))
Re:Merry Christmas to HN by adregan on Thursday December 25, 2014 @11:56AM (#8796605)
Or as a list comprehension if that's your thing:

    "".join([chr(x + 32) for x in [45,69,82,82,89,0,35,72,82,73,83,84,77,65,83,1]])
Re:Merry Christmas to HN by kevinavery on Thursday December 25, 2014 @12:27PM (#8796679)
Scala

  List(45,69,82,82,89,0,35,72,89,73,83,84,77,65,83,1) map (_ + 32 toChar) mkString