support function as pattern
tell `null` from `undefined`, and update README, 0.0.4