A small doubt

Artur Zawlocki [email protected]
Mon, 22 Oct 2001 09:50:01 +0200


Marcin 'Qrczak' Kowalczyk wrote:

> 
> What a pattern matches is independent from which of the variables
> it binds are used.
> 
> The pattern [a,b,c], or equivalently a::b::c::[], matches lists of
> length 3. 
> (...)


... unless it matches lazily, as in
	let [a,b,c] = [1,2,3,4] in let [a,b,c] = [] in 42.

Artur
	

 







-- 

Zamow odbitki ze zdjec cyfrowych lub archiwum zdjec na CD!
[ http://lab.foto.onet.pl/laboratorium.html ]