I hereby claim:
- I am sleepynate on github.
- I am sleepynate (https://keybase.io/sleepynate) on keybase.
- I have a public key ASBr71i5eTmJ3MGg4lWqR90_nfdkKEu5ersykbrT5scMWgo
To claim this, I am signing this object:
module PrimeFactors (primeFactors) where | |
primeFactors :: Integer -> [Integer] | |
primeFactors 1 = [] | |
primeFactors x = primeFactors' x 2 | |
where primeFactors' x n | |
| x < n = [] | |
| x `mod` n == 0 && x > n = [n] ++ primeFactors' (x `div` n, n + 1) | |
| otherwise = [x] |
import Math._ | |
object ScalaJSExample extends js.JSApp{ | |
class HTMLImageElement extends dom.raw.HTMLImageElement { | |
var onload: js.Function1[dom.Event, _] = ??? | |
} | |
def newUnit() = 2 * Math.random | |
def newMutPlus() = { |
abstract class Animal { | |
private String name; | |
public Animal(String name) { | |
this.name = name; | |
} | |
public String speak() { | |
return name + " says " + sound(); | |
} | |
public abstract String sound(); | |
} |
I hereby claim:
To claim this, I am signing this object: