Vyxapedia

Element - Þ∩ - Multiset Intersection

Characters: Þ,


Description

Similar to set intersection, but with duplicates allowed.


Overloads

  • lst-lst - multiset intersection of a and b

Examples

  • ⟨1|2|3|4|5|6|7|8|9|10⟩ ⟨1|2|3|4|5|6|7|8|9|10⟩ Þ∩ = ⟨1|2|3|4|5|6|7|8|9|10⟩
  • ⟨1|2|3|4|5|6|7|8|9|10⟩ ⟨1|2|3|4|5|6|7|8|9|10|11⟩ Þ∩ = ⟨1|2|3|4|5|6|7|8|9|10⟩
  • ⟨1|1|2|2|2|3|3|3⟩ ⟨1|2|2|3⟩ Þ∩ = ⟨1|2|2|3⟩
  • ⟨1|1|2|2|2|3|3|3⟩ ⟨1|2|2|3|4⟩ Þ∩ = ⟨1|2|2|3⟩
  • ⟨⟩ ⟨⟩ Þ∩ = ⟨⟩
  • ⟨1|2|3⟩ ⟨⟩ Þ∩ = ⟨⟩
  • ⟨1|1|1⟩ ⟨1⟩ Þ∩ = ⟨1⟩
  • 12 234 Þ∩ = ⟨2⟩
  • 12 `12` Þ∩ = ⟨⟩
  • `12` 12 Þ∩ = ⟨⟩
  • ⟨3|3|3|2|2|2|2⟩ ⟨3|3|3|3|3|2⟩ Þ∩ = ⟨3|3|3|2⟩