Vyxapedia

Element - - Is Divisible / Arbitrary Duplicate / Ordered Group By

Characters:


Description

Returns whether two items are divisible / numerous copies of the top of the stack / groups by results of function preserving order (adjacent group-by)


Overloads

  • num-num - a % b == 0
  • num-str - a copies of b
  • str-num - b copies of a
  • str-str - b + " " + a
  • any-fun - group a by the results of b, order is preserved (adjacent group-by)
  • fun-any - group b by the results of a, order is preserved (adjacent group-by)

Examples

  • 15 5 Ḋ = 1
  • `abc` 3 Ḋ = `abc`
  • ⟨5|13|29|48|12⟩ 2 Ḋ = ⟨0|0|0|1|1⟩