Use comp and partial instead of an anonymous function.