Design, synthesis, screening, and decoding of encoded one-bead one-compound peptidomimetic and small molecule combinatorial libraries.