Base64 decode data: Difference between revisions
Content added Content deleted
(Adds clojure solution) |
|||
Line 346: | Line 346: | ||
-- Paul R. Ehrlich |
-- Paul R. Ehrlich |
||
</pre> |
</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}}== |
=={{header|Common Lisp}}== |