ハツカネズミの恋

Lisp のもろもろ,おぼえがき

2019-03-01から1ヶ月間の記事一覧

Routing with Compojure

What's Compojure Compojure is a routing library for Ring interfaces. Compojure realise readable routing by the macro instead of the data. The components of Compojure are : namespace usage compojure.core provides some basic macros for routi…

How to deal with Ring

What's Ring ? Ring is a handy set of interfaces to interact with the web server. Ring uses maps instead of functions to express the requests from client and the responses from server, like Rack in Ruby or WSGI in Python. Ring has been used…

Collection in Clojure

Collection Clojure における Collection とは,coll? 関数を適用した時に logical truth を返すオブジェクトのことだ. coll? Clojure では慣習的に,評価結果が Boolean になる関数は語末に "?" を付ける,という規則がある.すなわち coll? の評価値も Bo…