Vyxapedia

Element - - Combinations/Remove/Fixed Point Collection

Characters:


Description

Does either combinations_with_replacement, removes items from a not in b, or applies a on b until the result stops changing (including the initial value).


Overloads

  • any-num - combinations_with_replacement(a, length=b)
  • fun-any - Apply a on b until the result does not change, yielding intermediate values. Includes the initial value.
  • any-str - remove elements from a that are not in b
  • any-lst - remove elements from a that are not in b

Examples

  • `cabbage` `abcde` ↔ = `cabbae`
  • ⟨1|3|5|6|7|7|1⟩ ⟨1|3|5⟩ ↔ = ⟨1|3|5|1⟩
  • ⟨1|2⟩ 2 ↔ = ⟨⟨1|1⟩|⟨1|2⟩|⟨2|1⟩|⟨2|2⟩⟩