# Is there a command returning information about a particular object? [closed]

Suppose I have a variable var1, a function MyFunction, and a graphic SomePlot. I remember seeing a feature, which returned information about a particular object (either it was in Mathematica or in Python, but I don't recall the exact form or place in which I read about it). Suppose it was in a form objects_name?, for example:

var1?


would return: a variable, var1 = 4 etc.

MyFunction?


would return: a function, MyFunction[#1,#2,...] = ... etc.

SomePlot?


would return: 2d plot... etc.

Is there something like that in Mathematica? I suppose there is, but I wasn't able to skillfully enter a proper search query in the Documentation nor in Mathematica.SE...

-

## closed as off-topic by Ajasja, m_goldberg, Michael E2, Sjoerd C. de Vries, bobthechemistJul 14 at 18:29

This question appears to be off-topic. The users who voted to close gave this specific reason:

• "This question arises due to a simple mistake such as a trivial syntax error, incorrect capitalization, spelling mistake, or other typographical error and is unlikely to help any future visitors, or else it is easily found in the documentation." – Ajasja, m_goldberg, Michael E2, Sjoerd C. de Vries, bobthechemist
If this question can be reworded to fit the rules in the help center, please edit the question.

Move the ? to the start :) –  rm -rf Jul 14 at 15:38
I realize this question is stated poorly, but I only have a vague idea about what I'm asking for. If someone pushes me into the right direction, I may can restate the question to be more helpful. –  Lurco Jul 14 at 15:38
My comment is the answer you're looking for... ?MyFunction and ??MyFunction –  rm -rf Jul 14 at 15:39
Type "information" into the documentation search ;-) –  Szabolcs Jul 14 at 15:39
@Lurco so, Definition and Information –  acl Jul 14 at 15:51

Clear["Global*"]

g[x_] := x^3
f1[x_] := g[x^2]
f2[x_] := g[x^3]

Definition@f1


f1[x_] := g[x^2]

FullDefinition@f1


f1[x_] := g[x^2]
g[x_] := x^3

Head@f1


Symbol

Information["f*"]


a[1] = 1;
a[2] = 2;

?a
DownValues@a
UpValues@a

-
Is there a variant of FullDefinition that is computable or an approach (using Hold?) that can similarly bring together nested functions ? I've tried combos of Apply` and 'Hold' –  PlaysDice Jul 14 at 17:01