Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Should note the `/.` is syntactic sugar (or special syntax) for `ReplaceAll[]` function. And basically anything can be written as M-expressions. For any expression this form can be retrieved with `FullForm[expr]` (may have to use `Hold[expr]`). So for your example with no special syntax:

    Set[e,Plus[5,x,f[x]]]
    ReplaceAll[e,Rule[x,6]]


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: