5 little clojure functions
DESCRIPTION
clojure, func, functions, functional, dev, javaTRANSCRIPT
5 little (…) functions 10 Problems solved 4Clojure2 Solutions shared…and Java Calls Clojure
@diego_pacheco
@diego_pacheco
diego-pacheco.blogspot.com
Yes, I’m a geek guy.
(And I like dinosaurs)
github.com/diegopacheco
Respect The REPL
Remember…
Remember…
(NO enterprise java Bullshit PLEASE)
.. (macro)
.
doto (macro)
(Classname/staticMethod args)Classname/staticField
Provide simplified access to static methods / static fields. You can call Java static method dead easy. Since Clojure is JAVA, you can call Clojure/Java classes as well.
classname. & new
Clojure & Java/Swing
This Code create a JFrame and add a JlabelTo the frame, also some properties are setlike visible true and bounds(dimensions).
4Clojure.com
10 Problems Solved +Share 2 Solutions
Solution 1
Solution 2
Java Calls Clojure
2 Ways:- Interpreted- Compiled
Java Calls Clojure - Interpreted
calc.clj
Java Calls Clojure - Interpreted
Java Calls Clojure - Compiled
user/complex.clj
Java Calls Clojure - Compiled
compile-clj.bat
Java Calls Clojure - Compiled
What's Next ?
Homework (all)• 3 new Functions from clojure.core• 10 problems at 4clojure (share 5 solutions) • Implement:
• (bank-transfer acc1 acc2 40)
It’s time !!!(Randori dojo)
DEV Clojure
#2
Recommended Books
(pr “Thanks All Folks”)
@diego_pacheco