Search results

intersect :: forall a. Eq a => Array a -> Array a -> Array a

Calculate the intersection of two arrays, creating a new array. Note that duplicates in the first array are preserved while duplicates in the second array are removed.

intersect [1, 1, 2] [2, 2, 1] = [1, 1, 2]
P purescript-arrays M Data.Array
intersect :: forall a. Eq a => NonEmptyArray a -> NonEmptyArray a -> Array a
P purescript-arrays M Data.Array.NonEmpty
intersect :: forall a. Eq a => List a -> List a -> List a

Calculate the intersection of two lists.

Running time: O(n^2)

P purescript-lists M Data.List
intersect :: forall a. Eq a => List a -> List a -> List a

Calculate the intersection of two lists.

Running time: O(n^2)

P purescript-lists M Data.List.Lazy
intersect :: forall a. Eq a => NonEmptyList a -> NonEmptyList a -> NonEmptyList a
P purescript-lists M Data.List.NonEmpty
intersect :: forall a. Eq a => OSet a -> OSet a -> OSet a
P purescript-ordered-set M Data.Set.Ordered
intersect :: Option Tooltip Boolean
P purescript-apexcharts M Apexcharts.Tooltip
intersect :: forall a. Eq a => ArrayView a -> ArrayView a -> ArrayView a
P purescript-array-views M Data.ArrayView
intersect :: forall a. Eq a => NonEmptyArrayView a -> NonEmptyArrayView a -> ArrayView a
P purescript-array-views M Data.ArrayView.NonEmpty
intersect :: forall a. Eq a => List a -> List a -> List a

Calculate the intersection of two lists, creating a new list. Note that duplicates in the first list are preserved while duplicates in the second list are removed.

Running time: O(n*m).

P purescript-rrb-list M RRBList
Intersect :: BinaryOperator
P purescript-sql-squared M SqlSquared.Signature.BinaryOperator
intersect' :: forall a. Eq a => NonEmptyArray a -> Array a -> Array a
P purescript-arrays M Data.Array.NonEmpty
intersects :: Range -> Range -> Effect Boolean
P purescript-ace M Ace.Range
intersects :: LatLngBounds -> LatLngBounds -> Boolean
P purescript-leaflet-tdammers M Leaflet.LatLng
intersect' :: forall a. Eq a => NonEmptyArrayView a -> ArrayView a -> ArrayView a
P purescript-array-views M Data.ArrayView.NonEmpty
intersect_ :: Number -> Number -> Number -> Number -> Rect_ -> Effect Rect_
P purescript-gojs M GoJS.Geometry.Rect.Methods
intersects :: Relation
P purescript-elasticsearch M Database.ElasticSearch.Query
intersectBy :: forall a. (a -> a -> Boolean) -> Array a -> Array a -> Array a

Calculate the intersection of two arrays, using the specified equivalence relation to compare elements, creating a new array. Note that duplicates in the first array are preserved while duplicates in the second array are removed.

mod3eq a b = a `mod` 3 == b `mod` 3
intersectBy mod3eq [1, 2, 3] [4, 6, 7] = [1, 3]
P purescript-arrays M Data.Array
intersectBy :: forall a. (a -> a -> Boolean) -> NonEmptyArray a -> NonEmptyArray a -> Array a
P purescript-arrays M Data.Array.NonEmpty
intersectBy :: forall a. (a -> a -> Boolean) -> List a -> List a -> List a

Calculate the intersection of two lists, using the specified function to determine equality of elements.

Running time: O(n^2)

P purescript-lists M Data.List
intersectBy :: forall a. (a -> a -> Boolean) -> List a -> List a -> List a

Calculate the intersection of two lists, using the specified function to determine equality of elements.

Running time: O(n^2)

P purescript-lists M Data.List.Lazy
intersectBy :: forall a. (a -> a -> Boolean) -> NonEmptyList a -> NonEmptyList a -> NonEmptyList a
P purescript-lists M Data.List.NonEmpty
intersectBy :: forall a. (a -> a -> Boolean) -> OSet a -> OSet a -> OSet a
P purescript-ordered-set M Data.Set.Ordered
intersectBy :: forall a. (a -> a -> Boolean) -> ArrayView a -> ArrayView a -> ArrayView a
P purescript-array-views M Data.ArrayView
intersectBy :: forall a. (a -> a -> Boolean) -> NonEmptyArrayView a -> NonEmptyArrayView a -> ArrayView a
P purescript-array-views M Data.ArrayView.NonEmpty
intersectBy :: forall a. (a -> a -> Boolean) -> List a -> List a -> List a

Calculate the intersection of two lists, using the specified equivalence relation to compare elements, creating a new list. Note that duplicates in the first list are preserved while duplicates in the second list are removed.

Running time: O(n*m).

P purescript-rrb-list M RRBList
intersects_ :: Number -> Number -> Number -> Number -> Rect_ -> Effect Boolean
P purescript-gojs M GoJS.Geometry.Rect.Methods
intersects_ :: Number -> Number -> Number -> Number -> Number -> Number -> Number -> Number -> Boolean
P purescript-gojs M GoJS.Geometry.Rect.Static
intersectBy' :: forall a. (a -> a -> Boolean) -> NonEmptyArray a -> Array a -> Array a
P purescript-arrays M Data.Array.NonEmpty
intersection :: forall k a b. Ord k => Map k a -> Map k b -> Map k a

Compute the intersection of two maps, preferring values from the first map in the case of duplicate keys.

P purescript-ordered-collections M Data.Map.Internal
intersection :: forall a. Ord a => Set a -> Set a -> Set a

The set of elements which are in both the first and second set

P purescript-ordered-collections M Data.Set
intersection :: forall a. Ord a => NonEmptySet a -> NonEmptySet a -> Maybe (NonEmptySet a)

The set of elements which are in both the first and second set. Nothing if the sets are disjoint.

P purescript-ordered-collections M Data.Set.NonEmpty
intersection :: forall k v. Hashable k => HashMap k v -> HashMap k v -> HashMap k v

Intersect two maps.

P purescript-unordered-collections M Data.HashMap
intersection :: forall a. Hashable a => HashSet a -> HashSet a -> HashSet a

Intersect two sets.

P purescript-unordered-collections M Data.HashSet
P purescript-row-extra M Row.Class
intersection :: forall a. Ord a => OrdSeq a -> OrdSeq a -> OrdSeq a

O(n*log(n)), where n is the length of the longer sequence. Create a new sequence containing only elements which are common to both sequences.

P purescript-sequences M Data.Sequence.Ordered
intersection :: forall a. Hashable a => MultiSet a -> MultiSet a -> MultiSet a
P purescript-multiset-hashed M Data.HashSet.Multi
P purescript-ts-bridge M TsBridge.Types.Intersection
IntersectAll :: BinaryOperator
P purescript-sql-squared M SqlSquared.Signature.BinaryOperator
intersectBy' :: forall a. (a -> a -> Boolean) -> NonEmptyArrayView a -> ArrayView a -> ArrayView a
P purescript-array-views M Data.ArrayView.NonEmpty
P purescript-canvas-geometry M Graphics.Canvas.Geometry
P purescript-geometria M Data.Geometria.Types
P purescript-geometry-plane M Data.Geometry.Plane
intersectRect_ :: Rect_ -> Rect_ -> Effect Rect_
P purescript-gojs M GoJS.Geometry.Rect.Methods
intersectsRect_ :: Rect_ -> Rect_ -> Effect Boolean
P purescript-gojs M GoJS.Geometry.Rect.Methods
intersectionWith :: forall k a b c. Ord k => (a -> b -> c) -> Map k a -> Map k b -> Map k c

Compute the intersection of two maps, using the specified function to combine values for duplicate keys.

P purescript-ordered-collections M Data.Map.Internal
intersectionWith :: forall k a b c. Hashable k => (a -> b -> c) -> HashMap k a -> HashMap k b -> HashMap k c

Intersect two maps, combining the values for keys that appear in both maps using the given function.

intersectionWith (-) (singleton 0 3) (singleton 0 2) == singleton 0 1

P purescript-unordered-collections M Data.HashMap
P purescript-row-extra M Row.Class
P purescript-intersection-observer M Web.Intersection.Observer