Fork me on GitHub
#clojure-germany
<
2021-04-01
>
javahippie07:04:07

Gefällt mir auch gut, ziemlich gut lesbar

RAMart08:04:53

@henrikheine definitiv. (Und auch, wenn das nicht unbedingt eine Garantie ist: Es entspricht zudem einem Beispiel unter https://clojuredocs.org

;; test argument against various unary predicates
(condp apply [:foo]
  string? "it's a string"
  keyword? "it's a keyword"
  symbol? "it's a symbol"
  fn? "it's a function"
  "something else!")
;;=> "it's a keyword"
Quelle: https://clojuredocs.org/clojure.core/condp

👍 6