x.dim <- c(10, 2,2)
x.len <- prod(x.dim)
gen <- function(n) sample(list(letters, month.abb, 1:10), n, TRUE)
x <- array(gen(10), x.dim)
y <- array(gen(10), c(10,1,1))
bc.list(
x, y, \(x, y)x %in% y
)
Run the code above in your browser using DataLab