Base64 decode data: Difference between revisions

Content deleted Content added
Peak (talk | contribs)
Adds clojure solution
Line 346:
-- Paul R. Ehrlich
</pre>
 
=={{header|Clojure}}==
 
<lang clojure>(defn decode [str]
(String. (.decode (java.util.Base64/getDecoder) str)))
 
(decode "VG8gZXJyIGlzIGh1bWFuLCBidXQgdG8gcmVhbGx5IGZvdWwgdGhpbmdzIHVwIHlvdSBuZWVkIGEgY29tcHV0ZXIuCiAgICAtLSBQYXVs
IFIuIEVocmxpY2g=")
</lang>
 
{{out}}
 
<pre>"To err is human, but to really foul things up you need a computer.\n -- Paul R. Ehrlich"</pre>
 
=={{header|Common Lisp}}==