Re: pattern matching with keyword function

"cedlemo [email protected] [ocaml_beginners]" <[email protected]> Fri, 8 Apr 2016 14:30:47 +0200
Newsgroups gmane.comp.lang.ocaml.beginners
Message-ID <[email protected]>
On 08/04/2016 12:58, 'Mr. Herr' [email protected] [ocaml_beginners] 
wrote:
> The empty list is not the last element,
> but the end indicator.
0_0

Ok that is why I was wrong I always though that the pattern elem :: rest 
could only match:

[first_element] :: [element_2; element_3; element_4;...element_n]
[first_element] :: [second_element] with a list of 2 elements

I hadn't understood that the
[firs_element]::[] for a list of 1 element could be a match

Thanks you.