~/bend-docscommunity

Genetics.bend relies on unsafe/foreign

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

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

Definitions

def choose_expr source · line 4 · raw

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

def replace_branch_add source · line 9 · raw

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

def replace_branch_mul source · line 14 · raw

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

def replace_branch_div source · line 19 · raw

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

def mutate_var_help source · line 24 · raw

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

def mutate source · line 30 · raw

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

Mutação de nós da árvore

def get_subtree source · line 81 · raw

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

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

def replace_subtree source · line 121 · raw

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

Substituição de subárvore

def crossover source · line 125 · raw

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

Operador de cruzamento de subárvores

Unsafe

unsafe get_subtree_step source · line 51 · raw

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

unsafe replace_subtree_step source · line 85 · raw

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