Skip to main content
We’ve updated our Terms of Service. A new AI Addendum clarifies how Stack Overflow utilizes AI interactions.
Code Golf

Timeline for Add two numbers

Current License: CC BY-SA 3.0

13 events
when toggle format what by license comment
Jun 17, 2020 at 9:04 history edited Community Bot
Commonmark migration
Jan 9, 2017 at 20:36 history edited Emigna CC BY-SA 3.0
added 58 characters in body
Jan 9, 2017 at 20:34 comment added Emigna @redstarcoder: I've searched several times and not found a meta on it. Some people seem to add 3 bytes for the v-flag and some don't. I suppose if you use fishlanguage which allows for implicit stack-filling you can ignore it and using TIO you need it.
Jan 9, 2017 at 20:22 comment added redstarcoder Regardless, you don't need the flag if you just use the fishlanguage.com interpreter. Do you have a link to the meta? I haven't seen any ><> program get added bytes for using integers on the initial stack (I've done it too).
Jan 9, 2017 at 20:10 comment added Emigna @redstarcoder: Everyone always specifies the flag as 3 bytes for fish (and 1 byte for all other languages it seems). Not sure why it's different but I assume it is for a valid reason.
Jan 9, 2017 at 15:53 comment added redstarcoder I thought the v flag would be a maximum of +1 byte but either way you could use the fishlanguage.com interpreter and your total would be 3 bytes (it doesn't need -v).
Jul 4, 2016 at 8:48 comment added Emigna @Aaron: True. But as that solution is already posted for several other languages already I'll keep this as a full program.
Jul 4, 2016 at 7:22 comment added Aaron Since the question lets you define a function, I believe a simple + would be enough : it would pop two numbers from the stack and put the result of their addition back on the stack. The cost of -v could also be avoided, since reading the numbers could have been done beforehand the function invocation.
Jul 3, 2016 at 11:12 history edited Emigna CC BY-SA 3.0
edited body
Jul 3, 2016 at 11:07 history undeleted Emigna
Jul 3, 2016 at 11:07 history edited Emigna CC BY-SA 3.0
deleted 266 characters in body
Jul 3, 2016 at 10:23 history deleted Emigna via Vote
Jul 2, 2016 at 19:02 history answered Emigna CC BY-SA 3.0

AltStyle によって変換されたページ (->オリジナル) /