[Date Prev] [Date Next] [Thread Prev] [Thread Next] Date Index Thread Index Search archive:
Date:Mon Oct 31 02:22:33 2002 
Subject:RE: Copying Lists 
From:steve 
Volume-ID:1021031.02 

Hi Ian,

>  > define mutate( chom );
>>       lvars pos = random( chom_length );   ;;; random = random0 + 1
>>       ;;; toggle the pos'th bit.
>>       not( testbit( population( chom ), pos ) ) -> testbit(
>>  population(
>>  chom ), pos )
>>  enddefine;
>
>Is that right? It doesn't look like you've updated chom with the new
>number...
>
>Shouldn't it be:
>
>define mutate( chom );
>      lvars pos = random( chom_length );   ;;; random = random0 + 1
>      lvars bitvec = population(chom);
>      ;;; toggle the pos'th bit.
>      not(testbit(bitvec, pos )) -> testbit(bitvec, pos) ->
>population(chom);
>enddefine;

Ah, poo.  You're right of course.  That's what happens when you don't 
have a version of Poplog on the same system as you do email.

-- 
Steve