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

62 lines
1.1 KiB
Markdown
Raw Normal View History

2019-12-26 05:23:33 +00:00
Operators shown here are purely for design experimentation and maynot reflect the final system of operators
2019-12-26 05:19:18 +00:00
## Make me a square!
Keg got 11 bytes on this challenge.
2019-12-26 05:23:33 +00:00
P[DD+s}S3
2019-12-26 05:19:18 +00:00
2019-12-26 05:20:25 +00:00
Expands to:
2019-12-26 05:19:18 +00:00
2019-12-26 05:23:33 +00:00
Shape(Palindromise(Add(Double(Double(input)), Space)), 3)
2019-12-26 05:20:25 +00:00
2019-12-26 05:23:33 +00:00
9 bytes (Ket) vs 11 bytes (Keg) .
2019-12-26 05:27:40 +00:00
## 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)
2019-12-26 05:36:02 +00:00
## Swap good and bad
Keg got 7 bytes on this challenge (first place btw)
-"....
Note that this uses a reverse token flag. But that's what the keg answer does.
6 bytes (Ket) vs 7 bytes (Keg).
2019-12-26 08:32:19 +00:00
## 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)
2019-12-26 08:35:26 +00:00
## DDoouubbllee SSppeeaakk
Keg got 3 bytes
i
interleave(input, input)
1 byte (Ket) vs 3 bytes (Keg)