1
0
Fork 0
mirror of https://github.com/Lyxal/Keta.git synced 2024-08-14 23:53:13 +00:00
Keta/Examples.md
2020-01-18 00:28:23 +13:00

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)