Speaking of definitions of equality:
Writing a university project jvm to llvm 'compiler', I found myself
designing a type in Haskell whose Ord and Eq instances 'naturally' got
defined in such a way that "less than AND equal to" made sense. I doubt
anyone's sanity except mine survived the project.
My life is mostly about music and playing with structure. Programming falls
into the second category.
Right now, I'm having difficulty getting a job since it's much more fun to
play the violin and program than to apply for jobs.
If I were to get a programming job where I were to do mundane tasks in
I propose using ☃. I don't think it has any other uses yet. ;)
On Tue, Jun 19, 2012 at 8:57 PM, Joel Ericson wrote:
> Only case I can see where it doesn't "work".
>
> user=> (def % partial)
> #'user/%
> user=> (map #(% + %) [1 2 3]
Only case I can see where it doesn't "work".
user=> (def % partial)
#'user/%
user=> (map #(% + %) [1 2 3]) ;trying to use #(% + %) instead of #(partial
+ %)
ClassCastException java.lang.Long cannot be cast to clojure.lang.IFn
user/eval2/fn--3 (NO_SOURCE_FILE:2)
; (Also: my first post in this group