News for hackers. Stuff that matters.
Re:Return True to Win by sladix on Friday August 12, 2016 @10:19AM (#12275822)
Does someone have a <52 char solution for the counter one ?
Re:Return True to Win by curveship on Friday August 12, 2016 @10:23AM (#12275869)
(x=0)=>()=>++x
Re:Return True to Win by awalGarg on Friday August 12, 2016 @10:39AM (#12276031)
You can save one character by doing this:

(x=0)=>_=>++x

the underscore is another variable but a single variable does not require parenthesis. So instead of two chars for the two parens, you use a single char for a single letter variable. JS FTW ;)

Re:Return True to Win by posterboy on Friday August 12, 2016 @10:28AM (#12275915)
that's ascii art, not code
Re:Return True to Win by sladix on Friday August 12, 2016 @10:24AM (#12275877)
Holy crap, that's what I call refactoring !
Re:Return True to Win by nikital on Friday August 12, 2016 @10:23AM (#12275864)
One solution:

    function(c=1){return function(){return c++}}
44 characters
Re:Return True to Win by Bahamut on Friday August 12, 2016 @03:09PM (#12278016)

  i=>_=>i=-~i