{"categories":["Clojure"],"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Ffatrow.hatenadiary.org%2Fentry%2F20100206%2F1265467987\" title=\" Clojure \u306e \u30b7\u30fc\u30b1\u30f3\u30b9\u3092 python \u306e\u30b9\u30e9\u30a4\u30b9\u306e\u3088\u3046\u306b\u53d6\u308a\u51fa\u3059 - hozumi\u306e\u65e5\u8a18\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","url":"https://fatrow.hatenadiary.org/entry/20100206/1265467987","provider_name":"Hatena Blog","author_name":"fatrow","width":"100%","version":"1.0","blog_title":"hozumi\u306e\u65e5\u8a18","blog_url":"https://fatrow.hatenadiary.org/","published":"2010-02-06 23:53:07","description":"(use 'clojure.contrib.test-is) (defn slice ([coll start] (let [start (max start 0)] (drop start coll))) ([coll start end] (let [start (max start 0)] (take (- end start) (drop start coll)))) {:doc \"Extract a subsequencet like a slice of python.\" :test #(are (= _1 _2) (slice [] 2 7) [] (slice [1 2 3 4\u2026","provider_url":"https://hatena.blog","image_url":null,"title":" Clojure \u306e \u30b7\u30fc\u30b1\u30f3\u30b9\u3092 python \u306e\u30b9\u30e9\u30a4\u30b9\u306e\u3088\u3046\u306b\u53d6\u308a\u51fa\u3059","type":"rich","author_url":"https://blog.hatena.ne.jp/fatrow/","height":"190"}