This brings up an error at line 21. I genuinely have absolutely no idea what it means.
I assume '_f' is the name of the function that foreach takes.
You've called your function 'cohere' but in the foreach you're trying to call 'cohesion' which doesn't exist. Hence NIL.
edit: Also, when I run your cart it reports the error at line 52 in _update, not line 21.
[Please log in to post a comment]