Activity for Olin Lathropâ€
Type | On... | Excerpt | Status | Date |
---|---|---|---|---|
Answer | — |
A: Make $2 + 2 = 5$ ESCR - not a golfing answer This isn't really an answer to the question, and it's not an attempt at golfing. However, it shows a cute trick for solving this problem that falls out of the way the ESCR language works. ESCR has no "operators" in the sense of a traditional programming language, on... (more) |
— | 3 months ago |
Answer | — |
A: Thoughts on hiding challenge sections with expandable details tags I don't like the partially or fully hidden examples. Those require more work to see the details, instead of just scrolling on. Anyone curious enough about a challenge from the title will want to read what it's about. Making that difficult is just annoying without any upside. Short challenges ... (more) |
— | over 1 year ago |
Answer | — |
A: Evens or Odds - you know this one ESCR, 17 bytes show [and [in] 1] ESCR has no way to read from standard input (currently), so I assumed the existence of the function IN which magically returns the user input. Since the user input was specified to be an integer, the built-in AND function will do a bit-wise logical AND with... (more) |
— | over 1 year ago |
Answer | — |
A: Looping counter Embed ESCR, about 32 characters depending on how you count loop append s "" show s endloop The indentation is not required, but shown for clarity. Declaring the variable S is also not included, since similar stuff doesn't seem to be included in other examples. S is a string varia... (more) |
— | about 2 years ago |
Answer | — |
A: A number adder, not a death adder ESCR, 35 bytes show "show [+ [arg 1] " [arg 1] "]" The SHOW command writes to standard output. The parameters in quotes are just fixed strings. The ARG function returns a numbered argument. In the case of programs, these are command line parameters. Running this program with 13 as example p... (more) |
— | about 2 years ago |
Answer | — |
A: Make my value binary Embed ESCR, 16 characters [int n "base 2"] The INT function produces the text representation of an integer with lots of formatting options. The only non-default option needed was to set the number base to 2. Full example: loop with n from 0 to 10 show n ": " [int n "base 2"] endloo... (more) |
— | about 2 years ago |
Answer | — |
A: It's Hip to be Square Embed ESCR, 28 characters [= [exp [rnd [sqrt n]] 2] n] The number to test is in N. There are 4 nested functions. From inner to outer: SQRT takes the square root of N. This produces a floating point result. RND rounds that to the nearest integer. EXP is used to raise that integer to the pow... (more) |
— | about 2 years ago |
Answer | — |
A: Can you give me half? Embed ESCR, 6 unique characters, 19 bytes [/ [] [+ [] []]] Each [] pair of brackets encloses an in-line function. The first token in a function is the function name, and subsequent tokens, if any, the parameters. Functions can be nested. The function multiplies a series of numbers. The p... (more) |
— | about 2 years ago |