A symmetry of imperfection

Facts of lore

Point of view, proof of concept

leave a comment »

Etapa 2 din Xpresso. Show off again. Mai spre seară voi spune mai multe.

E = E = (a^c)bd ^ (a + bd(a+c))

E = E = (a^c)bd ^ (a + bd(a+c))

Ca să mă laud mai departe, avem și o parte de cod.

getMidWires :: Int -> Int -> [GateLevel] -> [(Point, Point)]
getMidWires ww hw l = build gateInputs gateOutputs
   where
     grep = getGateRepresentation ww hw l
     gateInputs = concat . map inputs $ grep
     gateOutputs = iw ++ (map outputs $ grep)
     iw = zip (getLevel0 l) (map snd (getInputWires ww hw l))
     build [] outp = []
     build (inp:inps) outp = (snd inp, snd ind) : (build inps outp)
       where
         ind = head (dropWhile f outp)
         f outg = (fst outg) /= (fst inp)

Ne vedem diseară.

Written by Mithrandir

duminică, 7 iunie 2009 la 10:59:37

Lasă un Răspuns