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
module Conway exposing (..) | |
import Set exposing (Set) | |
type alias Cell = | |
( Int, Int ) | |
newCell : Int -> Int -> Cell |
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
from pylab import * | |
from random import shuffle | |
def qsort(l, s, e): | |
if s < e: | |
mid = part(l, s, e) | |
qsort(l, s, mid-1) | |
qsort(l, mid+1, e) | |
else: | |
return |