@MDXF Ah, gotta wait till I get home to make any more progress on it. My employer is pretty cool, but I doubt they'd appreciate Minecraft on my office workstation.
Your task is to take an encrypted string as input, and output the string decrypted, to reveal it's hidden message.
The strings, both the input and output, will contain characters from this list of 64 ASCII-characters (note the leading space).
!"#$%&'()*+,-./0123456789:;=?@[\]_abcdefghijklmnopq...
@Adnan In 05AB1E what counts as truthy? Just 1 or anything not 0? If statements (i) check if TOS is equal to 1, so 2 goes into the else, but 2__ is 1 not 0.
Recently I started playing around with Python and I came around something peculiar in the way closures work. Consider the following code:
adders=[0,1,2,3]
for i in [0,1,2,3]:
adders[i]=lambda a: i+a
print adders[1](3)
It builds a simple array of functions that take a single input and retu...
that's why you use a lambda: it'll resolve to whatever it ends up being at runtime
like, if you had a bunch of variables, you could put them in a map where the key is the variable name, and your lambda would call the map asking for the value of a particular variable name
Are there any functional programming languages designed for code golfing? I know that golfscript and CJam fulfill the same category for stack based, but I couldn't find a functional code golfing language.