With brains come senses, to detect whether the world is good or bad, and a memory.
Does it briefly mean "Brain, senses and memory come together ..."?
If so, is this grammatically correct?
Would you please explain it to me?
The fuller text:
With brains come senses, to detect whether the world is good or bad, and a memory. Together, these let the animal monitor in real time whether things are getting better or worse. This in turn allows a simple system of prediction and reward. Even animals with really simple brains – insects, slugs or flatworms – can use their experiences to predict what might be the best thing to do or eat next, and have a system of reward that reinforces good choices.
https://www.newscientist.com/article/dn9951-top-10-lifes-greatest-inventions/#faq3