cgta.oscala.extensions.IntExtensions.scala Maven / Gradle / Ivy
The newest version!
package cgta.oscala
package extensions
//////////////////////////////////////////////////////////////
// Copyright (c) 2014 Ben Jackman, Jeff Gomberg
// All Rights Reserved
// please contact [email protected] or [email protected]
// for licensing inquiries
// Created by bjackman @ 7/31/14 4:22 PM
//////////////////////////////////////////////////////////////
class IntExtensions(val x : Int) extends AnyVal {
def times(f : => Unit) {
var i = 0
while (i < x) {
f
i += 1
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy