In several contexts, the topology of a space is conveniently specified in terms of
limit points. This is often accomplished by specifying when a point is the
limit of a sequence. Still, for some spaces that are too large in some sense, one specifies also when a point is the limit of more general sets of points
indexed by a
directed set, known as
nets. A function is (Heine-)continuous only if it takes limits of sequences to limits of sequences. In the former case, preservation of limits is also sufficient; in the latter, a function may preserve all limits of sequences yet still fail to be continuous, and preservation of nets is a necessary and sufficient condition. In detail, a function f:X\to Y is
sequentially continuous if whenever a sequence \left\{x_n\right\} in X converges to a limit x, the sequence \left\{f\left(x_n\right)\right\} converges to f\left(x\right). Thus, sequentially continuous functions "preserve sequential limits." Every continuous function is sequentially continuous. If X is a
first-countable space and
countable choice holds, then the converse also holds: any function preserving sequential limits is continuous. In particular, if X is a metric space, sequential continuity and continuity are equivalent. For non-first-countable spaces, sequential continuity might be strictly weaker than continuity. (The spaces for which the two properties are equivalent are called
sequential spaces.) This motivates the consideration of nets instead of sequences in general topological spaces. Continuous functions preserve the limits of nets, and this property characterizes continuous functions. ==Formal statement==