palate 0.3.9

File type detection combining tft and hyperpolyglot
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
(defprotocol ISound (sound []))
 
(deftype Cat []
  ISound
  (sound [_] "Meow!"))
 
(deftype Dog []
  ISound
  (sound [_] "Woof!"))
 
(extend-type default
  ISound
  (sound [_] "... silence ..."))
 
(sound 1) ;; => "... silence ..."