In[n]
is a global object that is assigned to have a delayed value of the n input line.


In
In[n]
is a global object that is assigned to have a delayed value of the n input line.
Examples
open all close allScope (1)
Applications (1)
Reevaluate the third input 4 more times:
Evaluate DownValues for In to see what inputs are stored in this session:
Get the same data using Information. Here this only includes definitions from this example:
Properties & Relations (3)
Referencing an input number greater than the total number of inputs returns unevaluated:
If $HistoryLength is finite, only the $HistoryLength-1 most recent values of In have a value:
The value of $Line corresponds to the numbers in In and Out:
See Also
InString Out $Line $HistoryLength CellLabel EchoEvaluation
C Functions: WSNextPacket
Function Repository: ToggleLogInputs
Related Guides
Related Workflows
- Rerun a Previous Input ▪
- Reuse Input from Above
Related Links
History
Introduced in 1988 (1.0)
Text
Wolfram Research (1988), In, Wolfram Language function, https://reference.wolfram.com/language/ref/In.html.
CMS
Wolfram Language. 1988. "In." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/In.html.
APA
Wolfram Language. (1988). In. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/In.html
BibTeX
@misc{reference.wolfram_2025_in, author="Wolfram Research", title="{In}", year="1988", howpublished="\url{https://reference.wolfram.com/language/ref/In.html}", note=[Accessed: 08-August-2025]}
BibLaTeX
@online{reference.wolfram_2025_in, organization={Wolfram Research}, title={In}, year={1988}, url={https://reference.wolfram.com/language/ref/In.html}, note=[Accessed: 08-August-2025]}