POV-Ray : Newsgroups : povray.off-topic : how to scheme a cat up? : Re: how to scheme a cat up? Server Time
5 Sep 2024 09:24:00 EDT (-0400)
  Re: how to scheme a cat up?  
From: Invisible
Date: 18 Aug 2009 09:48:04
Message: <4a8ab114@news.povray.org>
Daniel Bastos wrote:
> How strong are my imperative ways?
> 
> #!/usr/bin/env mzscheme
> (module cat scheme/base
> 
> (define (cat)
>  (let ([ln (read-line)])
>      (if (not (eq? ln eof))
>          (and (display ln) (newline) (cat))
>          (exit) )))
> 
> ; main
> (cat)
> )
> 
> %fortune | ./cat
> Let me put it this way: today is going to be a learning experience.
> %
> 
> How would you scheme up your cat?

...wuh??


Post a reply to this message

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