heukarya-0.1.0.1: A genetic programming based on tree structure.

Safe HaskellNone

AI.Heukarya.Gene.Dynamic

Contents

Description

a implement of Gene

Synopsis

implements of Gene

evalTreeGene :: HeukaryaGene d => Tree d -> dSource

Transform a syntax tree to a expression

geneTypeRep :: HeukaryaGene d => d -> TextSource

Get Gene's Type representation

geneHTypes :: HeukaryaGene d => d -> [([Text], Text)]Source

Get every possible input type and output type

>>> geneHTypes $ toDyn "(+)" ((+)::Int -> Int -> Int)
[([],"Int -> Int -> Int"),(["Int"],"Int -> Int"),(["Int","Int"],"Int")]

outputHTreeType :: HeukaryaGene d => Tree d -> TextSource

get tree's actual output type.

wrap functions from Dynamic

toDyn :: Typeable a => Text -> a -> DynamicSource

fromDyn :: Typeable a => Dynamic -> a -> aSource

fromDynamic :: Typeable a => Dynamic -> Maybe aSource

dynApp :: Dynamic -> Dynamic -> DynamicSource

dynApply :: Dynamic -> Dynamic -> Maybe DynamicSource