Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

2
  • 8
    $\begingroup$ This property is called short circuiting and it's not only about efficiency. You can safely use a && b even when b wouldn't correctly run unless a has evaluated to True. E.g. StringQ[s] && StringStartsQ[s, "x"] $\endgroup$ Commented Oct 23, 2016 at 3:27
  • $\begingroup$ @Szabolcs Hm, forgot about that. Thanks for telling me. $\endgroup$ Commented Oct 23, 2016 at 3:32