Array.forall2<'T1,'T2> Function (F#)
Tests if all corresponding elements of the array satisfy the given predicate pairwise.
Namespace/Module Path: Microsoft.FSharp.Collections.Array
Assembly: FSharp.Core (in FSharp.Core.dll)
// Signature: Array.forall2 : ('T1 -> 'T2 -> bool) -> 'T1  -> 'T2  -> bool // Usage: Array.forall2 predicate array1 array2
The predicate is applied to matching elements in the two collections up to the lesser of the two lengths of the collections. If any application returns false then the overall result is false and no further elements are tested. Otherwise, if one collection is longer than the other, then the ArgumentException exception is raised.
This function is named ForAll2 in compiled assemblies. If accessing the function from a language other than F#, or through reflection, use this name.