Post History
jq, 16 bytes, preferably -rR ./""|reverse|add Annoyingly, jq has convenient things like implicit I/O, and annoying things like adding strings, but you can't reverse a string >:|. ./""&...
Answer
#3: Post edited
- # jq, 16 bytes, preferably `-rR`
`./""|reverse|add`- Annoyingly, jq has convenient things like implicit I/O, and annoying
- things like *adding* strings, but you can't `reverse` a string >:|.
- `./""`&`add` are slightly shorter than the more obvious
- `split("")`&`join("")`. The division operator splits a string, and `add` adds
- all the elements of an array together, using string concatenation in this
- case.
- # jq, 16 bytes, preferably `-rR`
- ```js
- ./""|reverse|add
- ```
- Annoyingly, jq has convenient things like implicit I/O, and annoying
- things like *adding* strings, but you can't `reverse` a string >:|.
- `./""`&`add` are slightly shorter than the more obvious
- `split("")`&`join("")`. The division operator splits a string, and `add` adds
- all the elements of an array together, using string concatenation in this
- case.
#2: Post edited
# jq, 23 bytes, preferably `-rR``explode|reverse|implode`- Annoyingly, jq has convenient things like implicit I/O, and annoying
- things like *adding* strings, but you can't `reverse` a string >:|.
`explode`&`implode` are slightly shorter than the more obvious `split("")`&`join("")`.
- # jq, 16 bytes, preferably `-rR`
- `./""|reverse|add`
- Annoyingly, jq has convenient things like implicit I/O, and annoying
- things like *adding* strings, but you can't `reverse` a string >:|.
- `./""`&`add` are slightly shorter than the more obvious
- `split("")`&`join("")`. The division operator splits a string, and `add` adds
- all the elements of an array together, using string concatenation in this
- case.
#1: Initial revision
# jq, 23 bytes, preferably `-rR` `explode|reverse|implode` Annoyingly, jq has convenient things like implicit I/O, and annoying things like *adding* strings, but you can't `reverse` a string >:|. `explode`&`implode` are slightly shorter than the more obvious `split("")`&`join("")`.