• Skip to primary navigation
  • Skip to content
  • Skip to footer
Clojure Diary Clojure Diary
  • Search
  • 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)

    Notes

    • rswan

    Updated: September 6, 2025

    Twitter Facebook LinkedIn
    Previous Next

    You May Also Enjoy

    Converting map keys to nested namespace keys

    1 minute read

    My understanding of XTDB (Immutable Databases)

    less than 1 minute read

    garden CSS library for Clojure, and Liberation, my Clojure pet project

    less than 1 minute read

    Calculating rate of change in Clojure

    less than 1 minute read

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