node package manager
Painless code sharing. npm Orgs help your team discover, share, and reuse code. Create a free org ยป



A delegator for specific functions. This is so specific to my needs, you won't be able to use it.


In coffeescript:

funcy_forward = require "forward_these_functions"

class List_Position:

  funcy_forward @prototype, "target", "pop", "push"

  constructor: ( list ) ->
    @list = list
  target: () ->

o = new List_Position []
o.push "a"
o.pop() # -> a