Skip to main content

Timeline for Substitution cipher

Current License: CC BY-SA 4.0

11 events
when toggle format what by license comment
S Jun 2, 2023 at 23:16 history suggested Benjamin Loison CC BY-SA 4.0
Add Ruby syntax highlighting
Jun 2, 2023 at 23:16 review Suggested edits
S Jun 2, 2023 at 23:16
Jun 17, 2020 at 9:04 history edited CommunityBot
Commonmark migration
Apr 16, 2016 at 20:39 comment added Value Ink Thanks for the tip! I was able to find more tricks to further save bytes as well.
Apr 16, 2016 at 20:39 history edited Value Ink CC BY-SA 3.0
added 156 characters in body
Apr 16, 2016 at 20:09 history edited Value Ink CC BY-SA 3.0
deleted 135 characters in body
Apr 16, 2016 at 18:28 comment added anon Oops, you're right. I wasn't paying attention to the function. What you can do is save a byte by just calling gets -- not assigning -- then using $_. As for the lambda notation, I'm not sure. I've almost never used it.
Apr 16, 2016 at 6:45 history edited Value Ink CC BY-SA 3.0
added 141 characters in body
Apr 16, 2016 at 6:32 comment added Value Ink You can't use it with gets because you're looping through an iterable with map and gets gets data from STDIN each time it's called. Bonus points because $< is the STDIN stream, making things potentially even more hectic. As for the arrow notation, it doesn't save bytes, and IIRC a lambda defined that way needs & in front of the procedure to make it work?
Apr 16, 2016 at 0:23 comment added anon Because you only use c once, you can replace it with gets. Also, I'm not sure if it would work, but you could try replacing {|l| with ->l{.
Apr 15, 2016 at 23:13 history answered Value Ink CC BY-SA 3.0