X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=bundles%2Forg.simantics.scl.runtime%2Fscl%2FVector.scl;fp=bundles%2Forg.simantics.scl.runtime%2Fscl%2FVector.scl;h=8583875e0ce80ff2e4f7d28ea84575aa9eede96e;hb=a8758de5bc19e5adb3f618d3038743a164f09912;hp=51ec078b62126f48a646842d6a416a5106462db4;hpb=12d9af17384d960b75d58c3935d2b7b46d93e87b;p=simantics%2Fplatform.git diff --git a/bundles/org.simantics.scl.runtime/scl/Vector.scl b/bundles/org.simantics.scl.runtime/scl/Vector.scl index 51ec078b6..8583875e0 100644 --- a/bundles/org.simantics.scl.runtime/scl/Vector.scl +++ b/bundles/org.simantics.scl.runtime/scl/Vector.scl @@ -165,7 +165,7 @@ mapFirstVector :: (a -> Maybe b) -> Vector a -> Maybe b mapFirstVector f v = mapFirstN (\i -> f (getVector v i)) (lengthVector v) @inline -containsVector :: Eq a => a -> Vector a -> Boolean +containsVector :: a -> Vector a -> Boolean containsVector x v = foldlN (\result i -> result || (v!i == x)) False (lengthVector v) @inline