Question: if I am using a language that has no I/O methods, is acceptable to store the input in a variable in the program's source code? I may be blind, but I couldn't find that on the defaults for I/O meta thread.
Does anyone here know how I can open an image in python, and apply a function to every pixel? E.g. I want to apply the function convert(r,g,b): ... return (new_r,new_g,new_b) to every pixel of the image.
@MartinEnder In regards to the naming of the "three-pronged shape", it looks like the shorthand notation for isopropyl alcohol (C3H8O), which is just that shape but it has an OH at the end of one of the "prongs". Don't know if that helps, but thought I'd mention it.
Ok. But here is a question: when the challenge was posted, there were two interpreters that could run that code: the command-line version and the IDE version, both available on GitHub. Both run with the same spec, but the command-line version has a bug that breaks the solution. Does the solution still count as competing if the IDE version does not have that bug?
@LeakyNun I see that the program that you sent me (here) has the wave on the opposite axis (i.e. it needs to be transposed) is this acceptable for the challenge?
@LeakyNun Pretty much, the operator takes either an array and block, or a number and block. If it is a number then it converts it into an array of [0, 1... N-1]. What happens is that each value in the array is stored into the variable, then the block is executed and the result is pushed onto the stack. Here is an example:
@Downgoat why does that evaluate to 5? Shouldn't it simplify to n + 1 + sqrt n? Or do I just not know the syntax and it actually simplifies to (sqrt n) + 1?