You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 23, 2017. It is now read-only.
Take the following code. Notice how in the VectorFuncs instance, the mult, add, sub and div functions all partially apply the op function. Now I know I could just do it without the partial application and get rid of op altogether, but this is more fun.
/Users/dominic/Documents/workspace/Roy/roy/src/compile.js:828
output = vm.runInNewContext(compiled.output, sandbox, 'eval');
^
TypeError: Object #<Object> has no method 'op'
at Object.vectorsWithFuncs.mult (eval:10:28)
at eval:31:30
at main (/Users/domlebo70/Documents/workspace/Roy/roy/src/compile.js:828:25)
at Array.forEach (native)
at Function._.each._.forEach (/Users/domlebo70/Documents/workspace/Roy/roy/node_modules/underscore/underscore.js:74:11)
at Object.main (/Users/domlebo70/Documents/workspace/Roy/roy/src/compile.js:803:7)
at Object.<anonymous> (/Users/domlebo70/Documents/workspace/Roy/roy/roy:2:26)
at Module._compile (module.js:449:26)
at Object.Module._extensions..js (module.js:467:10)
at Module.load (module.js:356:32)
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Take the following code. Notice how in the
VectorFuncs
instance, themult
,add
,sub
anddiv
functions all partially apply theop
function. Now I know I could just do it without the partial application and get rid ofop
altogether, but this is more fun.I receive the following error:
The text was updated successfully, but these errors were encountered: