I know I can do this:
x <- list(a=1, b=1)
y <- list(a=1)
JSON <- rep(list(x,y),10000)
sapply(JSON, "[[", "a")
However, I struggled at use $
in the same way
sapply(JSON, "$", "a")
sapply(JSON, "$", a)
Also, is it possible to use operator as a function like other languages?
e.g. a + b
is equivalent to (+)(a, b)