Post History
Japt, 4 bytes Takes the operator as a string but would also work without modification using a function by assigning it to variable V. That can be done in the header by leaving a blank line and the...
Answer
#3: Post edited
- # [Japt](https://github.com/ETHproductions/japt), 4 [bytes](https://en.wikipedia.org/wiki/ISO/IEC_8859-1)
- õ rV
- [Try it](https://petershaggynoble.github.io/Japt-Interpreter/?v=1.4.6&code=9SByVg&input=MTAKIl4i)
- õ rV :Implicit input of integer U and operator V, as string
- õ :Range [1,U]
- rV :Reduce by V
- # [Japt](https://github.com/ETHproductions/japt), 4 [bytes](https://en.wikipedia.org/wiki/ISO/IEC_8859-1)
- Takes the operator as a string but would also work without modification using a function by assigning it to variable `V`. That can be done in the header by leaving a blank line and then entering a function in the form `XY{X[op]Y}`, where `[op]` is the operator or method.
- õ rV
- [Try it](https://petershaggynoble.github.io/Japt-Interpreter/?v=1.4.6&code=9SByVg&input=MTAKIl4i)
- õ rV :Implicit input of integer U and operator V, as string
- õ :Range [1,U]
- rV :Reduce by V
#2: Post edited
- # [Japt](https://github.com/ETHproductions/japt), 4 [bytes](https://en.wikipedia.org/wiki/ISO/IEC_8859-1)
- õ rV
[Try it](https://petershaggynoble.github.io/Japt-Interpreter/?v=1.4.6&code=9SByVg&input=MTAKIl4i)
- # [Japt](https://github.com/ETHproductions/japt), 4 [bytes](https://en.wikipedia.org/wiki/ISO/IEC_8859-1)
- õ rV
- [Try it](https://petershaggynoble.github.io/Japt-Interpreter/?v=1.4.6&code=9SByVg&input=MTAKIl4i)
- õ rV :Implicit input of integer U and operator V, as string
- õ :Range [1,U]
- rV :Reduce by V