News for hackers. Stuff that matters.
Re:Fizz Buzz in Tensorflow by Pharylon on Monday May 23, 2016 @08:41PM (#11758123)
No loops, no sequence, one horrific line. :)

    Console.Write(String.Join("\r\n",  Enumerable.Range(1, 100).Select(x => x % 15 == 0 ? "FizzBuzz" : x % 5 == 0 ? "Buzz" : x % 3 == 0 ? "Fizz" : x.ToString())));
Re:Fizz Buzz in Tensorflow by spc476 on Monday May 23, 2016 @09:59PM (#11758486)
There's a hidden loop in Enumerable.Range(), and quite possibly another one in String.Join(). Just because you avoided an explicit loop doesn't mean there isn't one (for example, an "if" statements has an implicit GOTO).
Re:Fizz Buzz in Tensorflow by davidy123 on Monday May 23, 2016 @11:01PM (#11758716)
Ternaries aren't super readable.

  Array.from(Array(100).keys()).map(k => k + 1).map(i => !(i % 15) && 'fizbizz' || !(i % 5) && 'buzz' || !(i % 3) && 'fizz' || i)
Re:Fizz Buzz in Tensorflow by ingenter on Tuesday May 24, 2016 @06:20AM (#11760231)
No need for ternaries!

    Array.from(Array(100).keys()).map(k => k + 1).map(i => [i,'Fizz','Buzz','FizzBuzz'][!(i%3)+2*!(i%5)])