by Roboprog · 10y ago · 0 comments
While R is certainly not a general purpose language (yet?), it is very much an FP type language, and gaining in popularity. I have only tinkered with it a little, but it looked pretty sound.
> if ("blah" == "blah") {
y = 2
x = y + 2
} else {
x = 1
}
> x
4
> y
2
I really wish what I introduce in my blocks would stay in my blocks...Does R have an "IIFE" type construct, similar to JS or Golang?