generalize choose function
Merge branch 'master' of github.com:nutils/nutils