Skip to content

Commit 3b3856e

Browse files
authoredMay 3, 2024
Merge pull request #138 from Mirsait/20_logic_40_cond
Update function, make more beautiful
2 parents d9d8d30 + 5dd24b9 commit 3b3856e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎modules/20-logic/40-cond/index.clj

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33
(defn programmer-level [points-count]
44
(cond
55
(< points-count 10) "junior"
6-
(and (>= points-count 10) (< points-count 20)) "middle"
6+
(< points-count 20) "middle"
77
:else "senior"))
88
;END

0 commit comments

Comments
 (0)