The reference pages for Mathematica are by far the best docs I've seen for a programming language. They're thorough and each example can be evaluated in place.
Online version here [1] is not evaluatable and is rendered to images, but otherwise it's the same content as the desktop version. Specific example [2].