No need for infinite-length books to encode all possible functions, as there are notations to express infinity in finite space (e.g. programs, encoding an infinity of behaviour in a finite number of instructions).
The library of babel contain every possible finite description of every possible function.