Re: Permutation Generator
- From: JURKSCH@xxxxxxxxxxxxx (Hermann Jurksch)
- Date: Thu, 24 Nov 2005 15:53:00 +0100
john@xxxxxxxxxxxxxx wrote:
> Hermann's version gives error "force: expects argument of type
> <promise>; given ()" in DrScheme, but perhaps he has deliberately left
> some little error in it or is using another version of force. But as I
> said, it's not for a homework assignment (I'm not studying CS anyway),
> and the lazy stream version by John Gilson works like a charm. Thanks a
> lot!!!
The semantic of Gambit-C force is
(lambda (x) (if (promise? x) (force x) x)).
This should explain the error message.
Regards
Hermann
.
- References:
- Permutation Generator
- From: A Little Scheme Monster
- Re: Permutation Generator
- From: John Gilson
- Re: Permutation Generator
- From: A Little Scheme Monster
- Permutation Generator
- Prev by Date: Re: Permutation Generator
- Next by Date: Re: Geneva Scheme - self-modifying code?
- Previous by thread: Re: Permutation Generator
- Next by thread: Re: Permutation Generator
- Index(es):
Relevant Pages
|