POV-Ray : Newsgroups : povray.off-topic : I found this interesting : Re: [Caution: long monad ramble] Server Time
1 Oct 2024 15:22:32 EDT (-0400)
  Re: [Caution: long monad ramble]  
From: Darren New
Date: 13 Apr 2008 22:05:01
Message: <4802bbcd$1@news.povray.org>
Orchid XP v8 wrote:
> There's takeWhile, dropWhile and span which chop up segments of lists. 
> There's "unfoldr" which builds lists. There's "until", which repeats a 
> computation until a condition holds, and returns the final result. And 
> so on...

I think the "until" is what I was after, but the Erlang syntax for 
curried functions is just klunky enough to still make it annoying. 
Still, better than a global name for every while loop. :-)

-- 
   Darren New / San Diego, CA, USA (PST)
     "That's pretty. Where's that?"
          "It's the Age of Channelwood."
     "We should go there on vacation some time."


Post a reply to this message

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