News for hackers. Stuff that matters.

secretguy

Re:SteamOS: It's here on Saturday December 14, 2013 @08:15AM (#6905603)
Can you point out any misleading information in their advertisements?

By the way, it is a full blown OS.

Re:Programming Without Variables on Friday September 13, 2013 @05:43AM (#6379431)
Or perhaps like this if you do not want to use `reverse` and want it to be tail recursive:

    collatz :: Int -> [Int]
    collatz x = go id x []
      where
        go :: ([Int] -> [Int]) -> Int -> [Int] -> [Int]
        go f 1 = f . (1:) 
        go f n = 
          if even n
            then go (f . (n:)) (n `div` 2)
            else go (f . (n:)) (3 * n + 1)