This file contains hidden or 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
{-# LANGUAGE FlexibleContexts #-} | |
{-# LANGUAGE FlexibleInstances #-} | |
{-# LANGUAGE MultiParamTypeClasses #-} | |
{-# LANGUAGE OverlappingInstances #-} | |
{-# LANGUAGE TypeOperators #-} | |
-- An example of how to have an arbitrary stack of types, while still allowing | |
-- for easy querying and modifying the value at arbitrary depths of the stack. | |
-- | |
-- While having multiple of the same type in the stack still type checks, the |
This file contains hidden or 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
#!/usr/bin/perl | |
use Getopt::Long; | |
#Parse flags using Getopt::Long. | |
my $desc = ''; | |
my $public = 0; | |
my $user = ''; | |
my $verbose = 0; | |
GetOptions ('desc:s' => \$desc, | |
'public' => \$public, |
This file contains hidden or 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
;; Lee Spector ([email protected]) 20111018 - 20111113 | |
;; 20111113 update: handles functions of different arities | |
(ns evolvefn | |
(:require [clojure.zip :as zip])) | |
;; This code defines and runs a genetic programming system on the problem | |
;; of finding a function that fits a particular set of [x y] pairs. |