Timeline for Draw an ASCII Rectangle
Current License: CC BY-SA 3.0
4 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Apr 13, 2017 at 12:39 | history | edited | CommunityBot | replaced http://codegolf.stackexchange.com/ with https://codegolf.stackexchange.com/ | |
| Sep 20, 2016 at 6:44 | history | edited | adrianmp | CC BY-SA 3.0 | added 178 characters in body |
| Sep 19, 2016 at 19:44 | comment | added | milk | Using 1>i++%(h-1) instead of i++<1||i>h-1 will save 1 byte. You can also put all the string concats into a single statement so the for is a one liner and doesn't need braces, saving another 8 bytes: s+="|"+new string(1>i++%(h-1)?'-':' ',w-2)+"|\n" | |
| Sep 19, 2016 at 9:07 | history | answered | adrianmp | CC BY-SA 3.0 |