Attraction and repulsion in perception and working memory as complementary outcomes of learning | Synapse