A type of muscle whose function is to pull an appendage or body part inwards, towards the body of an animal.