How to do structural binding or destructuring in function argument lists or let bindings.[edit | edit source]
This is a Wiki for collecting structured Clojure usage examples. Examples are organized by namespace and function name. URLs are predictable. For instance, to see documentation for clojure.core/conj, go to: http://clojure-examples.appspot.com/clojure.core/conj Each function page provides built-in documentation (i.e., :doc metadata), in-depth examples, and references to related functions. Noteworth
プログラミングclojureは読み物としては面白いのですが、実際に自分でclojureのコードを書こうとするとすこし手間取ってしまいます。*1 ファイルIOもそのようなうちのひとつなのですが、clojureでのファイルIOについて少し調べてみました。 とりあえず以下のことができれば十分そうです。 ファイルを開いて(何か処理して)閉じる 1行読み込めれば十分 ファイルの中身をstreamとして取り出す あとはファイルへの出力の方もできればいいですね。 1行だけ読み込んでファイルをcloseする よく分からないですけど、javaではBufferedReader FileInputStream InputStreamReaderを使うのが普通みたいです。 javaのコードをべたにclojureで書いた後に、clojureで利用できる関数を使って短くしていこうと思います。 (面倒だったら、最後の部
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く