     public typealias TakesIndexBlock = ((Int)->())
 
     public class Proc {
-        var block : BasicBlock
+        var block: BasicBlock
 
-        public init(block : BasicBlock) {
+        public init(block: BasicBlock) {
             self.block = block
         }
 

    // this method is useful for slowing down events, like a chat client that
    // needs to insert chat messages and not be herky jerky.
    public static func throttle(interval: NSTimeInterval, block: BasicBlock) -> BasicBlock {
        var timer : NSTimer? = nil
        let proc = Proc() {
            timer = nil
            block()


    // Same as above, but you pass the block in to the closure that is returned.
    public static func debounce(timeout: NSTimeInterval) -> ThrottledBlock {
        var timer: NSTimer? = nil

        return { block in
            if let prevTimer = timer {
