Timeline for Expand Exponentiation
Current License: CC BY-SA 3.0
9 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Feb 20, 2017 at 20:55 | history | edited | fəˈnɛtɪk | CC BY-SA 3.0 |
added 51 characters in body
|
| Feb 20, 2017 at 20:52 | comment | added | Luke |
If you interpret "The four expressions may be output in any reasonable way as long as they are in order and clearly distinct." to also include returning an array with four different elements, you don't even need the .join()...
|
|
| Feb 20, 2017 at 18:15 | comment | added | ETHproductions |
You can save a further byte with .join: a=>b=>[a+'^'+b,(a+'*').repeat(b-1)+a,(a+'+').repeat(Math.pow(a,b-1)-1)+a,1+'+1'.repeat(Math.pow(a,b)-1)].join`=`
|
|
| Feb 20, 2017 at 14:34 | history | edited | fəˈnɛtɪk | CC BY-SA 3.0 |
added 69 characters in body
|
| Feb 20, 2017 at 8:48 | comment | added | Neil |
Why not '=1'+'+1'.repeat?
|
|
| Feb 20, 2017 at 5:52 | comment | added | Yytsi |
You could use the currying syntax: a=>b=>.
|
|
| Feb 20, 2017 at 4:06 | history | edited | fəˈnɛtɪk | CC BY-SA 3.0 |
deleted 5 characters in body
|
| Feb 20, 2017 at 3:56 | history | edited | fəˈnɛtɪk | CC BY-SA 3.0 |
added 6 characters in body
|
| Feb 20, 2017 at 3:45 | history | answered | fəˈnɛtɪk | CC BY-SA 3.0 |