A Neural-Functionalist Approach to Learning