Subject: [ruby-talk:4814] Re: Some questions
From: Dave Thomas <Dave thomases.com>
Date: Thu, 7 Sep 2000 12:06:52 +0900
References: 48094813
In-reply-to: matz@zetabits.com's message of "Thu, 7 Sep 2000 12:00:00 +0900"
matz / zetabits.com (Yukihiro Matsumoto) writes:
> def Cons::list(*args)
> if args.size == 0
> nil
> else
> Cons::new(args.shift, Cons::list(*args))
> end
> end
A recursive constructor: I love it ;-)