F# Array Library - Array.Combine

Description:
The combine function takes two arrays and returns a new array of pairs consisting of the elements from the first two arrays. The arrays obviously have to be of the same size.

Arguments:
1.) ‘a array – The first array.
2.) ‘a array – The second array.

Return Value:
('a * 'b) array

Example:




Here's the source code:

let array1 = [| 'a' ; 'b' ; 'c' |];;
let array2 = [| 'd' ; 'e' ; 'f' |];;
let newArray = Array.combine array1 array2;;

Comments
  8/30/2008

  8/30/2008

Keep it coming, man!
Leave Us a Comment!
Title (we need it)

Your Name (we need it)

Your Comment (we need it)