We are currently working on new rules for what content should and shouldn't be allowed on this website, and are looking for feedback! See Esolang:2026 topicality proposal to view and give feedback on the current draft.
斯莱特8
Jump to navigation
Jump to search
- Not to be confused with SLet 8.
斯莱特8 is a program that transforms the string 2416735 to 412273 using the following operation:
- Sort the string
- Remove the last character
- Push
4to the front - Remove everything except the first 4 characters
- Insert
27before the last character
The name comes from the eighth Trivia Question on the LILAC Puzzlehunt Channel (斯="this" in Classical Chinese; 莱="Lilac"; 特="Trivia") and is a pun on the SLet 8 Programming Language.
Implementations
Javascript
See original article.
Polynomix
`2416735' ,.<! $$ step 1: sort //(0,1[])/ $$ step 2: pop +!!["4] $$ step 3: unshift /(0,4) $$ step 4: slice /(3,3`27') $$ step 5: splice >. $$ step 6: output
Expected output: 412273
Uiua
[2 4 1 6 7 3 5] sor # step 1: sort undrev (dro 1) # step 2: pop joi[4] # step 3: unshift tak 4 # step 4: slice unddiprotjoi [2 7] 3 # step 5: splice &pf # step 6: output
Expected output: [4 1 2 2 7 3]