Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
henrydark
on Nov 17, 2022
|
parent
|
context
|
favorite
| on:
APL deserves its renaissance too (2018)
Replicate looks like numpy's repeat. For example
np.repeat(list("abcd"), [2,1,0,2])
is equivalent to the first example in the link.
mlochbaum
on Nov 17, 2022
[–]
Ah, thank you! I'd tried to find this for implementing BQN in NumPy (never finished) and didn't. Maybe I thought it only worked with a scalar for the number of repetitions.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: