• Skip to primary navigation
  • Skip to content
  • Skip to footer
Clojure Diary Clojure Diary
  • Book
  • Code
  • Videos
  • Donate

    Calling a function before it’s defined, in Clojure

    less than 1 minute read

    Code

    ;; calling_function_before_definition.clj
    
    (declare b)
    
    (defn a []
      (println "a")
      (b))
    
    (defn b []
      (println "b"))
    
    (a)

    Updated: September 6, 2025

    Twitter Facebook LinkedIn
    Previous Next

    You May Also Enjoy

    Harnessing the power of Java in Clojure

    less than 1 minute read

    Coding limit and offset in Clojure

    less than 1 minute read

    keep-indexed and map-indexed in Clojure

    less than 1 minute read

    How I refactor my tests in Clojure

    less than 1 minute read

    • Feed
    © 2025 Clojure Diary. Powered by Jekyll & Minimal Mistakes.