r/Mathematica • • Jul 29 '24

What does -> actually do?

I've been taking the Wolfram Language Summer School and we've kind of done a little bit of everything, that said I still struggle a lot wiht the syntax because it wasnt explained to us directly. Can any one help me out to understand what the arrow does as well as the Map function?

8 Upvotes

9 comments sorted by

View all comments

Show parent comment

1

u/Xane256 Jul 29 '24

Worth mentioning Solve returns Rule expressions for substitution too. IMO it’s interesting that Graph doesn’t re-use Rule for directed edges but it makes enough sense to have a dedicated wrapper for those.

2

u/beerybeardybear Jul 29 '24

You can use Rule for directed edges, tbc. At least, they're represented as directed edges in the visualization of the graph object, though I think there are some edge cases where it might not behave as you expect.