Emotions are complex in nature. Some philosophers have argued that emotions have evolved to help species adapt to their environment. This view of emotions is best illustrated by functionalism.
A question what reading are you talking about?