2015-02-13 11:30 GMT+01:00 Jonathan Winandy <[email protected]>:
> (defn to-mode-fn [mode]
> (if (keyword? mode)
> (case mode :high Math/ceil
> :low Math/floor
> :normal Math/round
> (throw (Exception. "ERROR: get-percentage [:high|:low|:normal]
> <PLACE> <TOTAL_COUNT>")))
> mode))
>
If I execute that I get:
CompilerException java.lang.RuntimeException: Unable to find static
field: ceil in class java.lang.Math, compiling:(NO_SOURCE_PATH:3:5)
I am using clojure 1.6.0 on Linux.
--
Cecil Westerhof
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
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.
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
---
You received this message because you are subscribed to the Google Groups
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.