The bind
object itself doesn't do anything. It simply exists in order
to define notation for binding variables using the sub-script operator.
# S3 method for pmatch_bind [(dummy, ...) <- value
dummy | The |
---|---|
... | Patterns to assign to. |
value | Actual values to assign |
#> [1] TRUEy == 4#> [1] TRUEllist := NIL | CONS(car, cdr : llist) L <- CONS(1, CONS(2, CONS(3, NIL))) bind[CONS(first, CONS(second, rest))] <- L first == 1#> [1] TRUEsecond == 2#> [1] TRUE