diff options
author | Divay Prakash <divayprakash@users.noreply.github.com> | 2019-05-11 01:28:30 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-05-11 01:28:30 +0530 |
commit | c521d4d1b811e5730470b217bf8bff9071dfd44d (patch) | |
tree | eef54af991dabde1a4a36e2415944e4eff21345a /fsharp.html.markdown | |
parent | ea01c52036ead53c08b28e184c2b4bf2dbc8c3f2 (diff) | |
parent | d9b80337ba915040c9e019db79b1ce62c736c4db (diff) |
(fsharp/en) List Pattern Matching first element of "many" (#3516)
List Pattern Matching first element of "many"
Diffstat (limited to 'fsharp.html.markdown')
-rw-r--r-- | fsharp.html.markdown | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fsharp.html.markdown b/fsharp.html.markdown index 59461eed..24044d76 100644 --- a/fsharp.html.markdown +++ b/fsharp.html.markdown @@ -194,7 +194,7 @@ module ListExamples = | [] -> printfn "the list is empty" | [first] -> printfn "the list has one element %A " first | [first; second] -> printfn "list is %A and %A" first second - | _ -> printfn "the list has more than two elements" + | first :: _ -> printfn "the list has more than two elements, first element %A" first listMatcher [1; 2; 3; 4] listMatcher [1; 2] |