POV-Ray : Newsgroups : povray.off-topic : A comparison : Re: A comparison Server Time
11 Oct 2024 01:22:30 EDT (-0400)
  Re: A comparison  
From: Warp
Date: 20 Mar 2008 07:58:01
Message: <47e25f59@news.povray.org>
Invisible <voi### [at] devnull> wrote:
> Mine works for *any* type that supports the + operator too. ;-)

  Does it work for things like balanced binary trees, double-ended queues,
arrays and strings (ie. sum the ascii values of the characters in a string)?
In other words, does it work for all possible containers which items you
can iterate over?

  No, I'm not saying that with the proper language it wouldn't be possible
to make such a function as a short one-liner. I'm just curious to know if
Haskell is such a language.

-- 
                                                          - Warp


Post a reply to this message

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