POV-Ray : Newsgroups : povray.off-topic : Why is Haskell interesting? : Re: Why is Haskell interesting? Server Time
4 Sep 2024 17:21:13 EDT (-0400)
  Re: Why is Haskell interesting?  
From: Warp
Date: 27 Feb 2010 17:07:32
Message: <4b8997a3@news.povray.org>
Orchid XP v8 <voi### [at] devnull> wrote:
>    case size c of
>      3 -> case (size (c ! 0), size (c ! 1), size (c ! 2)) of
>             (1, 2, 3) -> (c ! 0 ! 0) + (c ! 1 ! 0) + (c ! 2 ! 0)
>             _         -> 0
>      _ -> 0

  I don't know why, but I got an irresistible urge to write some faux haskell
after seeing that.

    case closed in d by
      x -> case (open, not!, closed, yes!, 2) because
           (1, 2, 3) -> (one, two, three) + x
            hence    -> yes
      hence -> no

  To me, it makes exactly as much sense. :P

-- 
                                                          - Warp


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.