Vyxapedia

Element - ² - Square

Characters: ²


Description

Square a number / Format a string into a square


Overloads

  • num - a ** 2 (squared)
  • str - a formatted as a square (list of sqrt(len(a)) strings, each sqrt(len(a)) long, such that joining the strings and removing spaces in the end gives a)

Examples

  • 5 ² = 25
  • `hello` ² = ⟨`hel`|`lo `|` `⟩
  • `bye` ² = ⟨`by`|`e `⟩
  • ⟨1|2|3⟩ ² = ⟨1|4|9⟩