F# What is the syntax for creating and populating an FSharpx.Collections.Vector? -


i make use of vector<'t> data structure mentioned here answer

https://stackoverflow.com/a/17961204/818645

but can't seem syntax right. example:

open fsharpx.collections  let tuple1= (1,2.0,"f") let tuple2= (2,3.0,"f")  let mylstoftuples = [tuple1;tuple2]   let myvector = ?? <- how do this? 

how create vector of type vector<int * float * string> , populate data?

the simplest way use ofseq method follows

let myvector = mylstoftuples |> vector.ofseq 

Comments

Popular posts from this blog

basic authentication with http post params android -

vb.net - Virtual Keyboard commands -

css - Firefox for ubuntu renders wrong colors -