The time has come the walrus said to talk of many things

Where is this from? Is it a children's book or what?

Lewis Carroll's popular work, Through the Looking Glass, has these famous lines: "The time has come," the Walrus said, "to talk of many things: Of shoes and ships and sealing wax - - of cabbages and kings."