Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
A basic question
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Kathy Chen <kathy08@g...>
Subject: A basic question
Hi, all,

I'm a newcomer here.
I don't understand why the following two
    let [x;y;z] = [1;2;3] ;;
    let [x;y;z] = [1;2;3;4] ;;
have warnings: "this pattern-matching is not exhaustive".
I think they just setting values for x, y, and z.

Could anyone pls tell me why?