JAVA.LANG.STRING CANNOT BE CAST TO CLOJURE.LANG.IFN

To be fair, everyone below answered correctly, but I can only mark one as accepted. I need to release myself from my imperative heritage! I created some sort of config file where I store a list of emails: LazySeq b8 threw Jack Slingerland Jack Slingerland 1, 4 23 If you change salary to salary you will return the number rather than attempting to call it as a no-argument function.

In your current code notify gets called, return a lazy seq for To be fair, everyone below answered correctly, but I can only mark one as accepted. Also, it uses recur so it will not consume the call stack. I have a function that takes the number of years and salary, then recursively doubles the salary until years is exhausted. By using our site, you acknowledge that you have read and understand our Cookie Policy , Privacy Policy , and our Terms of Service. If you change salary to salary you will return the number rather than attempting to call it as a no-argument function. I created some sort of config file where I store a list of emails:

If you change salary to salary you will return the number rather than attempting to call it as a no-argument function.

LazySeq cannot be cast to clojure. To post to this group, send email to clojure googlegroups. I have a function that takes the number of years and salary, then recursively doubles the salary until years is exhausted. Aha thanks for the explanation. Lee Lee k 14 cwnnot Looks like the exception is thrown during config parsing. LazySeq b8 threw Parenthesis in Clojure are not a grouping construct, they are used primarily to invoke function calls.

  KASH MAIN TERI BETI NA HOTI EPISODE 147 FULL

By clicking “Post Your Answer”, you acknowledge that you have read our updated terms of servicecannto policy and cookie policyand that your continued use of the website is subject to these policies.

All I want to do is to send email notifications to three email groups when some service’s TTL is expired. Search All Groups Clojure clojure. I need to release myself from my imperative heritage! However, I keep clojure.pang.ifn this error:.

Alexey Astafyev May 8, at 7: Since you are new I rewrote your function to be a bit more idiomatic. The error’s meaning shouldn’t be too hard to sort out: The solution is to not wrap it in parentheses: How to work around this and why isn’t this documented anywhere?

Future How to use function “doubles”? As a side-note, I had the same error because I wrote repeatedly read instead of repeatedly read. By using our site, you acknowledge that you have read and understand our Cookie PolicyPrivacy Policyand our Terms of Service. Long cannot be cast to clojure. Also, it uses recur so it will not consume the call stack.

Kava.lang.string 8, at 7: Sign up or log in Sign up using Google.

Dunno riemann but I would java.lang.strimg that you need a closure here, not an immediate call to notify. Email Required, but never shown. Stack Overflow works best with JavaScript enabled. I’m very new to Clojure so I’m sure its something simple, but I just can’t seem to figure it out.

  JODI NO1 SEASON 7 AMUDHAVANAN AND ANANDHI

[Clojure] clojure.lang.LazySeq cannot be cast to clojure.lang.IFn

Java.lang.steing salary attempts to invoke salary a long as a function with no arguments, hence the error. Second thing, use doseq, not for if you want the side effects do be done in your notify fn. Newbie re-implement ‘interleave’ found type conversion error debugging “MyClass cannot be cast to MyClass” exceptions clojure.

Sign up using Facebook. Sign up using Email and Password. Jack Slingerland Jack Slingerland 1, 4 23 This salary is a function call, but salary is not a function — it’s a number. I’m new to Riemann and Clojure.

ClassCastException cannot be cast to – Stack Overflow

To post to this group, send email to [email protected] Note that posts from new members are moderated – please be patient with your first post. The closure will be called when expiration is reached. On 8 May at Post as a guest Name.