type Code = [(Char, [Bool])] type RandomVariable a = [(a, Double)] codeword c x = maybe (error "bad symbol") id $ lookup x c.
確定! 回上一頁