Post History
#2: Post edited
# [J](https://jsoftware.com/#/), 11 bytes- ```
{{u/>:i.y}}- ```
TIO's version of J does not support direct definitions yet, so I cannot showcase the code online. There might be a shorter method that does not use a DD, but I am not so well-versed.
- # [J](https://jsoftware.com/#/), ~~11~~ 9 bytes
- ```
- /@(>:@i.)
- ```
- [Attempt it online!](https://ato.pxeger.com/run?1=m70wa8GCpaUlaboWN_PdFGytFPQdNOysHDL1NLlSkzPyFbQV3BQMEUxTCFMLIaqFEI3wD0KIQzhGyBxUZQYQa6G2w1wBAA)