Element - ε
- Absolute Difference / Repeat / Regex match
Characters:
ε
Description
Returns the absolute difference / Fills an array of a certain length / Does a regex match
Overloads
num-num
-abs(a - b)
num-str
-[b] * a
str-num
-[a] * b
str-str
-regex.match(b, a) (first match of regex b on a)
Examples
5 1 ε
=4
1 5 ε
=4
⟨1|2|3⟩ 4 ε
=⟨3|2|1⟩
`hello` 2 ε
=⟨`hello`|`hello`⟩
3 `goodbye` ε
=⟨`goodbye`|`goodbye`|`goodbye`⟩
⟨`ab`|`cd`⟩ 2 ε
=⟨⟨`ab`|`ab`⟩|⟨`cd`|`cd`⟩⟩
`abcd` `.*` ε
=`abcd`
`abcd` `a..` ε
=`abc`