New answers tagged

0

Vyxal, 1 byte ¦ Try it Online! But that's boring, so here's something a bit more interesting: 6 bytes żƛw?$i Try it Online! Explained żƛw?$i # Implicit input of string żƛ # Over each integer n in range(1, len(input) + 1): ? # input[ w $i # :n] (python indexing) # Implicitly print the result of the above.


1

jq, 17 bytes .[:range(length)] Try it online! -10 from ovs.


Top 50 recent answers are included