Logiweb(TM)

Logiweb aspects of card2term ( " , " ) in pyk

Up Help

The "pyk" aspect

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

The "value" aspect

define value of card2term ( t , v ) as norm { t is val : { v is val : if v = 0 then make-root ( t , quote %% end quote ) :: true else if evenp ( v ) then make-root ( t , quote card2term ( t , half ( v ) ) unquote %0 end quote ) :: { card2term ( t , half ( v ) ) :: true } else { make-root ( t , quote card2term ( t , half ( v ) ) unquote %1 end quote ) :: { card2term ( t , half ( v ) ) :: true } } } } 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