Last active
          October 13, 2024 21:08 
        
      - 
      
- 
        Save PEZ/60e1accc59d5c5783365ab46d47eb78b to your computer and use it in GitHub Desktop. 
    Hello World – Rich 4Clojure Problem 16 – See: https://github.com/PEZ/rich4clojure
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | (ns rich4clojure.elementary.problem-016 | |
| (:require [hyperfiddle.rcf :refer [tests]])) | |
| ;; = Hello World = | |
| ;; By 4Clojure user: dbyrne | |
| ;; Difficulty: Elementary | |
| ;; | |
| ;; Write a function which returns a personalized greeting. | |
| (def __ :tests-will-fail) | |
| (comment | |
| ) | |
| (tests | |
| (__ "Dave") := "Hello, Dave!" | |
| (__ "Jenn") := "Hello, Jenn!" | |
| (__ "Rhea") := "Hello, Rhea!") | |
| ;; To participate, fork: | |
| ;; https://github.com/PEZ/rich4clojure | |
| ;; Post your solution below, please! | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
            
(def __ (partial format "Hello, %s!"))
(fn [who] (str "Hello, " who "!"))