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

    Thread first ans thread last in Clojure

    less than 1 minute read

    Notes

    1
    2
    3
    4
    5
    6
    7
    8
    9
    
    ;; thread_first_and_last.clj
    
    ;; thread first
    (-> 2
        (Math/pow 3)) ; 8.0
    
    ;; thread last
    (->> 2
         (Math/pow 3)) ; 9.0
    

    Updated: April 10, 2023

    Twitter Facebook LinkedIn
    Previous Next

    You May Also Enjoy

    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

    macro based decorator in Clojure

    1 minute read

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