powered by
The bind object itself doesn't do anything. It simply exists in order to define notation for binding variables using the sub-script operator.
bind
# S3 method for pmatch_bind [(dummy, ...) <- value
The bind object. Only used to dispatch to the right subscript operator.
Patterns to assign to.
Actual values to assign
# NOT RUN { bind[x, y] <- c(2,4) x == 2 y == 4 llist := NIL | CONS(car, cdr : llist) L <- CONS(1, CONS(2, CONS(3, NIL))) bind[CONS(first, CONS(second, rest))] <- L first == 1 second == 2 # }
Run the code above in your browser using DataLab