NOTE: Planning upgrades around 8pm-10pm UTC today. Expect some downtime and possibly read-only wiki. Avoid major editing sessions during that time.
SecretLang 2.0
Jump to navigation
Jump to search
Because the original SecretLang was called 'too high-level' by islptng, PSTF created its upgraded version.
Rules
Same as SecretLang.
Programs
1. Hello, World!
"Hello, World!"→
Hint: Inspired by Polynomix.
2. Cat Program
(☑) ⇱ {⌨→}
3. Sgn Machine
\x$1$←⌨; (x>0)?({1→} (x<0)?({¯1→} (☑) ⇱ {0→}))
4. Collatz Sequence
\x$1$←⌨; (x≠1) ⇱ {(xⓂ2=0)?({x←x÷2} {x←3×x+1}); x→} "\nAll Done!"→
5. Quine
sys↓ sys.åV[1]→
Output:
sys↓ sys.åV[1]→
6. Fibonacci Function
\f$Λ$←λ.[a$1$]{(a > 1)?({¦ a + f(a - 1)} {¦ 1})}; f(⌨)→
7. Average Number
\x←0.0;\m$1$←⌨;\n←m;
(m) ⇱ {x←x+⌨;m←m-1;}
x÷n→
8. Raise an Error
(UnknownError, "Hello, World!")↘
Output:
At Line 1, Character 32 UnknownError: Hello, World!
Guessing Area
Go to Talking page to guess.
See Also
Guess, Mystery, Guessing, User guessed, SecretLang