Vyxapedia

Element - - Summate

Characters:


Description

Returns the sum of the top of the stack (reduce by addition)


Overloads

  • num - sum(digits of a)
  • str - a
  • lst - sum(a)

Examples

  • ⟨1|2|3|4|5⟩ ∑ = 15
  • ⟨`abc`|`def`|10⟩ ∑ = `abcdef10`
  • 12345 ∑ = 15
  • -12345 ∑ = -15
  • `id` ∑ = `id`
  • 1.414213562 ∑ = 29