[ create a new paste ] login | about

Link: http://codepad.org/DR6nPYGc    [ raw code | output | fork ]

Haskell, pasted on Jul 17:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import Data.List
import System.Random
import Data.Ord

type Point     = (Float,Float)
type Color     = (Int,Int,Int)
type Polygon   = [Point]
type Person    = [Int]
type Link      = [Point]
type Placement = [(Point,Person)]

type EnergyFunction a              = a -> Int
type TemperatureFunction           = Int -> Int -> Float
type TransitionProbabilityFunction = Int -> Int -> Float -> Float
type MotionFunction a              = StdGen -> a -> (StdGen,a)

main = do 
  putStr "Hello World! \n"


Output:
1
Hello World! 


Create a new paste based on this one


Comments: