1. A memory, comprising: a set of two-terminal memory cells having respective first terminals connected to one of a set of bitlines of the memory, and having respective second terminals connected to one of a set of local wordlines of the memory; a power source configured to be selectively connected to or disconnected from respective ones of the set of local wordlines; and a memory controller configured to perform memory operations for the memory, and configured to program one memory cell of the set of two-terminal memory cells at least in part by: causing the power source to be selectively connected to one of the set of local wordlines that is connected to a second terminal of the one memory cell; and causing the power source to apply a positive voltage to the one of the set of local wordlines.