Clojure
さらに、前々回の続きです・・・簡単な検証クラスをかいて、問題のパターンを実験してみた。AbsClass.java abstract class AbsClass<T> { public void message(T mes) { System.out.println("Hello " + mes + "!!"); } public void hello() { System.out.printl</t>…
前回の続きです・・・タイムラインの取得 (import '(twitter4j Twitter)) (def id "hogehoge") (def pw "piyopiyo") (def twitter (new Twitter id pw)) (def statuses (.getFriendsTimeline twitter)) (.. (first statuses) getText) (.. (first statuses) …
Twitter4j を試してみた。参考はこのページ「コード例」まずは、ステータスの更新 (import '(twitter4j Twitter)) (def id "hogehoge") (def pw "piyopiyo") (def twitter (new Twitter id pw)) (def status (. twitter updateStatus "test tweet (by twitte…
Project Euler の Problem-5 をClojureに移植していたらハマった・・・Scala版 def problem5(m:BigInt):BigInt = { def checkloop(n:BigInt, s:BigInt):BigInt = { if (n % m == BigInt(0)) n else checkloop(n+s, s) } if (m == BigInt(1)) m else { val ne…