what would you call this function?

xxx([1, 2, 3], 4) => [1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3]

added context -- this is in an environment where "repeat" exists and is defined as

repeat([1, 2, 3], 4) => [1, 2, 3, 1, 2, 3, 1, 2, 3, 1, 2, 3]

Sign in to participate in the conversation
CleverLibre Social

CleverLibre Social is an inclusive social instance for open discussion, learning, and community.
All cultures welcome.
Hate speech and harassment strictly forbidden.