comp.lang.ada
 help / color / mirror / Atom feed
From: imc@ecs.ox.ac.uk (Ian Collier)
Subject: Re: Language wars (6th September)
Date: 1996/09/11
Date: 1996-09-11T00:00:00+00:00	[thread overview]
Message-ID: <9107.imc@comlab.ox.ac.uk> (raw)
In-Reply-To: 5140ec$g9b@watnews1.watson.ibm.com


In article <5140ec$g9b@watnews1.watson.ibm.com>, ncohen@watson.ibm.com wrote:
|> > factorial x = x, if x<3
|> >             = x*factorial(x-1), otherwise
|
|Well, there certainly is something Orwellian about asserting that 0! = 0.

OK, clever clogs. :-)

> factorial 0 = 1
> factorial (n+1) = n+1, if n<2
>                 = (n+1)*factorial n, otherwise

So I've demonstrated pattern matching now as well.

|> This whole article is an Orwell program, because lines not starting with ">"
|> are comments.
|
|Until it gets quoted in another article! :-)

Says who? :-)

Ian Collier - imc@comlab.ox.ac.uk - WWW Home Page:
http://www.comlab.ox.ac.uk/oucl/users/ian.collier/index.html




  reply	other threads:[~1996-09-11  0:00 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-09-06  0:00 Language wars (6th September) Roy Gardiner
1996-09-06  0:00 ` Solomon Taibi
1996-09-07  0:00   ` Frank Derichsweiler
1996-09-07  0:00     ` Robert Dewar
1996-09-07  0:00     ` Rony.Flatscher
1996-09-09  0:00     ` Roy Gardiner
1996-09-09  0:00   ` Ian Collier
1996-09-10  0:00     ` Norman H. Cohen
1996-09-11  0:00       ` Ian Collier [this message]
1996-09-07  0:00 ` Daniel P Hudson
     [not found] ` <511qn6$407i@news-s01.ny.us.ibm.net>
1996-09-10  0:00   ` David Whiteman
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox