~/bend-docscommunity

Genetics.bend relies on unsafe/foreign

raw source on the hub · import 0x07516e23611e5287ce89bcff661be83f/Genetics.bend as Genetics

2 imports
import Base
import ./Types.bend as T

Definitions

def choose_expr source · line 4 · raw

@is_even:Bool -> @e1:0x07516e23611e5287ce89bcff661be83f/Types.Expr -> @e2:0x07516e23611e5287ce89bcff661be83f/Types.Expr -> 0x07516e23611e5287ce89bcff661be83f/Types.Expr

def replace_branch_add source · line 9 · raw

@is_even:Bool -> @left:0x07516e23611e5287ce89bcff661be83f/Types.Expr -> @right:0x07516e23611e5287ce89bcff661be83f/Types.Expr -> @+new_child:0x07516e23611e5287ce89bcff661be83f/Types.Expr -> 0x07516e23611e5287ce89bcff661be83f/Types.Expr

def replace_branch_mul source · line 14 · raw

@is_even:Bool -> @left:0x07516e23611e5287ce89bcff661be83f/Types.Expr -> @right:0x07516e23611e5287ce89bcff661be83f/Types.Expr -> @+new_child:0x07516e23611e5287ce89bcff661be83f/Types.Expr -> 0x07516e23611e5287ce89bcff661be83f/Types.Expr

def replace_branch_div source · line 19 · raw

@is_even:Bool -> @num:0x07516e23611e5287ce89bcff661be83f/Types.Expr -> @den:0x07516e23611e5287ce89bcff661be83f/Types.Expr -> @+new_child:0x07516e23611e5287ce89bcff661be83f/Types.Expr -> 0x07516e23611e5287ce89bcff661be83f/Types.Expr

def mutate_var_help source · line 24 · raw

@is_even:Bool -> @+rng:U32 -> 0x07516e23611e5287ce89bcff661be83f/Types.Expr

def mutate source · line 30 · raw

@expr:0x07516e23611e5287ce89bcff661be83f/Types.Expr -> @+rng:U32 -> 0x07516e23611e5287ce89bcff661be83f/Types.Expr

Mutação de nós da árvore

def get_subtree source · line 81 · raw

@expr:0x07516e23611e5287ce89bcff661be83f/Types.Expr -> @+path:U32 -> 0x07516e23611e5287ce89bcff661be83f/Types.Expr

Extração de subárvore navegando por um caminho de bits

def replace_subtree source · line 121 · raw

@target:0x07516e23611e5287ce89bcff661be83f/Types.Expr -> @+replacement:0x07516e23611e5287ce89bcff661be83f/Types.Expr -> @+path:U32 -> 0x07516e23611e5287ce89bcff661be83f/Types.Expr

Substituição de subárvore

def crossover source · line 125 · raw

@p1:0x07516e23611e5287ce89bcff661be83f/Types.Expr -> @p2:0x07516e23611e5287ce89bcff661be83f/Types.Expr -> @path1:U32 -> @path2:U32 -> 0x07516e23611e5287ce89bcff661be83f/Types.Expr

Operador de cruzamento de subárvores

Unsafe

unsafe get_subtree_step source · line 51 · raw

@+path:U32 -> @is_zero:Bool -> @expr:0x07516e23611e5287ce89bcff661be83f/Types.Expr -> 0x07516e23611e5287ce89bcff661be83f/Types.Expr

unsafe replace_subtree_step source · line 85 · raw

@+path:U32 -> @is_zero:Bool -> @target:0x07516e23611e5287ce89bcff661be83f/Types.Expr -> @+replacement:0x07516e23611e5287ce89bcff661be83f/Types.Expr -> 0x07516e23611e5287ce89bcff661be83f/Types.Expr