Note also that there are no arrays in your code. [ ... ] makes a list, not an array.

(See e.g. [link:lorgonblog.spaces.live.com] for more.)

By on 4/12/2009 12:49 PM ()

By using comma ( , ) as separator you declare tuple. So each your list

contains only one tuple element. To declare several element in list you

need to use semicolon ( ; ) as delimeter

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
let sets = [


    [ "elm1"; "elm2" ];


    [ "elm3"; "elm4"; "elm5" ];


    [ "elm6" ]   


]

Bonus answer

1
    sets |> Seq.sum_by Seq.length
By on 4/12/2009 9:02 AM ()
IntelliFactory Offices Copyright (c) 2011-2012 IntelliFactory. All rights reserved.
Home | Products | Consulting | Trainings | Blogs | Jobs | Contact Us | Terms of Use | Privacy Policy | Cookie Policy
Built with WebSharper