{"action":"created","issue":{"url":"https://api.github.com/repos/kovasb/gamma/issues/27","labels_url":"https://api.github.com/repos/kovasb/gamma/issues/27/labels{/name}","comments_url":"https://api.github.com/repos/kovasb/gamma/issues/27/comments","events_url":"https://api.github.com/repos/kovasb/gamma/issues/27/events","html_url":"https://github.com/kovasb/gamma/issues/27","id":101340749,"number":27,"title":"basic operations on return of aget rejected","user":{"login":"timsgardner","id":451342,"avatar_url":"https://avatars.githubusercontent.com/u/451342?v=3","gravatar_id":"","url":"https://api.github.com/users/timsgardner","html_url":"https://github.com/timsgardner","followers_url":"https://api.github.com/users/timsgardner/followers","following_url":"https://api.github.com/users/timsgardner/following{/other_user}","gists_url":"https://api.github.com/users/timsgardner/gists{/gist_id}","starred_url":"https://api.github.com/users/timsgardner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/timsgardner/subscriptions","organizations_url":"https://api.github.com/users/timsgardner/orgs","repos_url":"https://api.github.com/users/timsgardner/repos","events_url":"https://api.github.com/users/timsgardner/events{/privacy}","received_events_url":"https://api.github.com/users/timsgardner/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-08-17T05:18:58Z","updated_at":"2015-08-17T08:16:12Z","closed_at":null,"body":"```clojure\r\n(require '[gamma.api :as g])\r\n```\r\n```clojure\r\n(g/+ 1 (g/aget (g/vec3 2) 0))\r\n```\r\nthrows:\r\n```\r\ngamma-tools.core=> System.Exception: Arguments to + must have type :int or :float\r\n  at gamma/api$_PLUS___172.invoke (System.Object , System.Object ) [0x000a1] in api.clj:210 \r\n  at gamma_tools/core$eval__3333__3338.invoke () [0x00000] in <filename unknown>:0 \r\n  at clojure.lang.Compiler.eval (System.Object form) [0x00000] in <filename unknown>:0 \r\n  at clojure.lang.Compiler.eval (System.Object form) [0x00000] in <filename unknown>:0 \r\n  at clojure/core$eval__57691.invoke (System.Object ) [0x00000] in core.clj:3076 \r\n  at arcadia/repl$repl_eval_print$fn__28359__28363.invoke () [0x001e3] in repl.clj:59 \r\n  at arcadia/repl$repl_eval_print__28366.invoke (System.Object , System.Object ) [0x0041e] in repl.clj:57 \r\n  at arcadia/repl$repl_eval_string__28382.invoke (System.Object , System.Object ) [0x0002f] in repl.clj:75 \r\n  at arcadia/repl$repl_eval_string__28382.invoke (System.Object ) [0x00000] in repl.clj:72 \r\n  at arcadia/repl$eval_queue$fn__28390__28394.invoke () [0x00000] in repl.clj:84 \r\n```\r\n\r\nand\r\n\r\n```clojure\r\n(g/float (g/aget (g/vec3 1) 0))\r\n```\r\nthrows:\r\n```clojure\r\ngamma-tools.core=> System.Exception: Wrong argument types for term float: \r\n  at gamma/api$build_standard_function_term__284.invoke (System.Object , System.Object , System.Object ) [0x00110] in api.clj:329 \r\n  at gamma/api$float__338.doInvoke (System.Object ) [0x00000] in api.clj:331 \r\n  at clojure.lang.RestFn.invoke (System.Object arg1) [0x00000] in <filename unknown>:0 \r\n  at gamma_tools/core$eval__3347__3352.invoke () [0x00000] in <filename unknown>:0 \r\n  at clojure.lang.Compiler.eval (System.Object form) [0x00000] in <filename unknown>:0 \r\n  at clojure.lang.Compiler.eval (System.Object form) [0x00000] in <filename unknown>:0 \r\n  at clojure/core$eval__57691.invoke (System.Object ) [0x00000] in core.clj:3076 \r\n  at arcadia/repl$repl_eval_print$fn__28359__28363.invoke () [0x001e3] in repl.clj:59 \r\n  at arcadia/repl$repl_eval_print__28366.invoke (System.Object , System.Object ) [0x0041e] in repl.clj:57 \r\n  at arcadia/repl$repl_eval_string__28382.invoke (System.Object , System.Object ) [0x0002f] in repl.clj:75 \r\n  at arcadia/repl$repl_eval_string__28382.invoke (System.Object ) [0x00000] in repl.clj:72 \r\n  at arcadia/repl$eval_queue$fn__28390__28394.invoke () [0x00000] in repl.clj:84 \r\n```"},"comment":{"url":"https://api.github.com/repos/kovasb/gamma/issues/comments/131726117","html_url":"https://github.com/kovasb/gamma/issues/27#issuecomment-131726117","issue_url":"https://api.github.com/repos/kovasb/gamma/issues/27","id":131726117,"user":{"login":"timsgardner","id":451342,"avatar_url":"https://avatars.githubusercontent.com/u/451342?v=3","gravatar_id":"","url":"https://api.github.com/users/timsgardner","html_url":"https://github.com/timsgardner","followers_url":"https://api.github.com/users/timsgardner/followers","following_url":"https://api.github.com/users/timsgardner/following{/other_user}","gists_url":"https://api.github.com/users/timsgardner/gists{/gist_id}","starred_url":"https://api.github.com/users/timsgardner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/timsgardner/subscriptions","organizations_url":"https://api.github.com/users/timsgardner/orgs","repos_url":"https://api.github.com/users/timsgardner/repos","events_url":"https://api.github.com/users/timsgardner/events{/privacy}","received_events_url":"https://api.github.com/users/timsgardner/received_events","type":"User","site_admin":false},"created_at":"2015-08-17T08:16:12Z","updated_at":"2015-08-17T08:16:12Z","body":"This seems to work as an alternative to ```aget``` in many situations:\r\n```clojure\r\n(defn hero-aget [v i]\r\n  (g/+ 0 (g/aget v (g/int i))))\r\n```"}}