Post History
APL(Dyalog Unicode), 13 bytes SBCS {⍵[?⍨≢⍵]}@⎕⊢⎕ Try it on APLgolf! A tradfn submission which takes both lists on STDIN, second input is 1-indexed.
Answer
#1: Initial revision
# [APL(Dyalog Unicode)][1], <sup><s></s></sup>13 bytes <sup>[SBCS][2]</sup> ``` {⍵[?⍨≢⍵]}@⎕⊢⎕ ``` [Try it on APLgolf!](https://razetime.github.io/APLgolf/?h=AwA&c=q37UuzXa/lHvikedi4DM2FqHR31TH3UtApIA&f=AwA&i=ZYuxEcAgDAN7ptAAKizLgbAQ@48QSJl0r3v9akLCKFzoGJ/V1k970yum2amgmBEscdy06GKe3ykmFA8&r=tio&l=apl-dyalog&m=tradfn&n=f) [1]: https://dyalog.com [2]: https://github.com/abrudz/SBCS A tradfn submission which takes both lists on STDIN, second input is 1-indexed.