I want to create a function that takes an object and returns a bound method, like this:
f = (~ m)
f(x)() # same as x.m()
However, this parses ~ as the unary bitwise NOT operator, rather than the binding access operator. IOW it compiles to ~change. I want it to compile to function(it) { return bind$(it, 'change'); } instead.
Can I use a section for this (and what is the syntax) or do I have to write a lambda?