Vyxapedia

Element - r - Range

Characters: r


Description

Range between two numbers, or cumulative reduce, or regex match


Overloads

  • num-num - range(a,b) (range from a to b)
  • num-str - append spaces to b to make it length a
  • str-num - prepend spaces to a to make it length b
  • any-fun - cumulative_reduce(a,function=b) (prefixes of a reduced by b)
  • str-str - regex.has_match(pattern=a,string= b) (does b match a)

Examples

  • 3 6 r = ⟨3|4|5⟩
  • 4 8 r = ⟨4|5|6|7⟩
  • `abc` 5 r = ` abc`
  • 5 `abc` r = `abc `
  • `abc` 1 r = `abc`
  • `abc` `bd*` r = 1