• 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

    Mount - Clojure State Management

    less than 1 minute read

    Commenting, i.e. adding docstrings to multimethods in Clojure

    less than 1 minute read

    Rant about strings. About comment, and work around to comment multimethods

    1 minute read

    Complex multimethod processing, in Clojure

    1 minute read

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