Hi, I have a large vector of repeated data (dates in my case, but I'd like to keep this generic). In R I can apply a function to the elements efficiently using something like this:
myfun <- function(x, fun, ...) { ux <- unique(x); fun(ux, ...)[match(x, ux)] } myfun(x, as.character) So basically apply the function to the unique elements then use match to recreate x. What's the best way to do this in Julia? -- Terry