Keta/Examples.md

1.1 KiB

Operators shown here are purely for design experimentation and may not reflect the final system of operators:

Make me a square!

Keg got 11 bytes on this challenge.

P[DD+s}S3

Expands to:

Shape(Palindromise(Add(Double(Double(input)), Space)), 3)

9 bytes (Ket) vs 11 bytes (Keg) .

Output Distinct Factor Cubiods

Keg didn't participate in this challenge.

*R=
F?f^

Psuedo:

function f
    reduce the input via multiplication
    return that result equal to the input

function main
    generate factors of input
    filter list by above flow (f)

Swap good and bad

Keg got 7 bytes on this challenge (first place incidentally).

-"....

Note that this uses a reverse token flag. But that's what the keg answer does.

6 bytes (Ket) vs 7 bytes (Keg).

N(e(s(t))) a string

Keg got 12 bytes.

M\(+\)*!

ININIM
Add(Map(input, "("), Times(")", length(input)))

--mapoffbyone 8 bytes (Ket) vs 12 bytes (Keg)

DDoouubbllee SSppeeaakk

Keg got 3 bytes.

i

interleave(input, input)

1 byte (Ket) vs 3 bytes (Keg)