Logiweb(TM)

Logiweb aspects of int2string1 ( " , " ) in pyk

Up Help

The "pyk" aspect

Define pyk of int2string1 ( asterisk , asterisk ) as "int2string1 ( "! , "! )" end define

The "value" aspect

define value of int2string1 ( v , r ) as norm { v is val : { r is val : if v = 0 then r else LET logand ( "0" , %% %2 %5 %5 ) BE { asterisk IN LET asterisk BE { z IN LET floor ( v , %% %1 %0 ) BE { asterisk IN LET { if asterisk atom then asterisk else { asterisk head } } :: { { if asterisk atom then asterisk else { asterisk tail } } :: true } BE { asterisk prime IN LET asterisk prime head BE { asterisk IN LET asterisk prime tail BE { asterisk prime IN LET asterisk BE { x IN LET asterisk prime head BE { asterisk IN LET asterisk prime tail BE { asterisk prime IN LET asterisk BE { y IN int2string1 ( x , { { %% %2 %5 %6 * r } + z } + y ) } } } } } } } } } } } } end define

The pyk compiler, version 0.1.9 by Klaus Grue,
GRD-2007-07-12.UTC:20:11:58.175987 = MJD-54293.TAI:20:12:31.175987 = LGT-4690987951175987e-6