Skip to main content

Timeline for Count up diagonally!

Current License: CC BY-SA 3.0

15 events
when toggle format what by license comment
Jun 7, 2018 at 15:59 comment added JayCe @Giuseppe One more byte
Aug 1, 2017 at 6:34 history edited JAD CC BY-SA 3.0
added 23 characters in body
Aug 1, 2017 at 6:33 comment added JAD Nice, I thought of abusing the automatic spacing of cat, but I couldn't think straight and figure it out for some reason.
Jul 31, 2017 at 21:44 comment added Giuseppe 61 bytes with the spec "consistent leading space"
Jul 31, 2017 at 10:50 history edited JAD CC BY-SA 3.0
added 11 characters in body
Jul 31, 2017 at 10:50 comment added JAD But replacing \n for an actual newline works too, and that doesn't cost two bytes apparently.
Jul 31, 2017 at 10:48 comment added JAD ... that makes sense. sorta...
Jul 31, 2017 at 10:48 comment added djhurio You are right about the function. nchar('\n') == 1 ;)
Jul 31, 2017 at 10:47 history edited JAD CC BY-SA 3.0
edited body
Jul 31, 2017 at 10:47 comment added JAD Yet manually counting I do get 70. This is weird...
Jul 31, 2017 at 10:44 comment added JAD @djhurio Inside a function, that is not necessary, since F is only modified in its own namespace. Also, I count 69 bytes, using nchar.
Jul 31, 2017 at 10:43 comment added djhurio Unfortunately you have to reset F, otherwise the function can be used only once in a new sessions. F=0;for(i in scan():scan()){cat(rep(' ',F),i,'\n',sep='');F=F+nchar(i)} (71 byte)
Jul 31, 2017 at 10:35 comment added djhurio I see 70 bytes there. Using scan() twice it can be reduced to 67 bytes for(i in scan():scan()){cat(rep(' ',F),i,'\n',sep='');F=F+nchar(i)}.
Jul 31, 2017 at 10:03 history edited JAD CC BY-SA 3.0
added 174 characters in body
Jul 31, 2017 at 9:57 history answered JAD CC BY-SA 3.0