Vyxapedia

Element - ġ - Gcd / Group by Function

Characters: ġ


Description

Greatest Common Denominator of a list or some numbers


Overloads

  • lst - GCD(a) (gcd of whole list)
  • num-num - gcd(a,b) (dyadic gcd)
  • str-str - longest common suffix of a and b
  • fun-any - group b by the results of function a
  • any-fun - group a by the results of function b

Examples

  • ⟨1|3|2⟩ ġ = 1
  • ⟨60|42|108⟩ ġ = 6
  • 50 35 ġ = 5
  • -12 -20 ġ = 4
  • `laugh` `cough` ġ = `ugh`