This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defn cmap | |
"lazy cumulative map" | |
([f coll] (cmap f (f) coll)) | |
([f val coll] | |
(cons val | |
(if (empty? coll) | |
nil | |
(lazy-seq (cmap f | |
(f val (first coll)) | |
(rest coll)))))) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(ns sieve.core | |
(:use clojure.data.priority-map) | |
(:gen-class)) | |
(defn doto-last [coll f & args] | |
(let [idx (dec (count coll)) | |
args (conj args (coll idx))] | |
(assoc coll idx (apply f args)))) | |
(defn prime-gaps [gk-1] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
_rev=r03 | |
_sdkver=L | |
_sdkint=20 | |
pkgname=android-platform-${_sdkint} | |
pkgver=${_sdkver}_${_rev} | |
pkgrel=2 | |
pkgdesc="Android SDK Platform, API-${_sdkint}" | |
arch=('any') | |
url="http://developer.android.com/sdk/index.html" | |
license=('custom') |
NewerOlder