Added typedef to return type of local(), first() and last()