2011-07-01から1ヶ月間の記事一覧

Purely Functional Data Structures 第2章

演習問題を解いたのでメモ. ex 2.1 suffixes :: [a] -> [[a]] suffixes [] = [[]] suffixes xss@(_:xs) = xss : suffixes xs ex 2.2 data Set a = Leaf | Branch a (Set a) (Set a) deriving Show empty :: Set a empty = Leaf insert :: Ord a => a -> Set…

ProcessingでSQLiteを使おうと思ったら "The type SQLite is ambiguous" というエラーがでた

ProcessingでSQLiteを使おうと思ったら "The type SQLite is ambiguous" というエラーがでてしばらく困った.結局 import de.bezier.data.sql.*; としてたのを import de.bezier.data.sql.SQLite; に直したらうまくいった.