Implement list function index (#12775).

Change-Id: I5d3c10f751934a297a525fb3211921b865a6a3f5