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.

4
  • Perfect! I marked your answer as the accepted solution. BTW, the first line of code you show is improperly formatted.
    – Mike Slinn
    Commented Sep 8, 2016 at 16:47
  • Oops, I accepted too soon. The | operator is undefined.
    – Mike Slinn
    Commented Sep 8, 2016 at 16:51
  • You need to import syntax, see update. I fixed formatting as well, thanks.
    – Łukasz
    Commented Sep 8, 2016 at 16:59
  • Thankyou for providing imports! It really helps when answers include a complete working example:)
    – TonyC
    Commented Jun 23, 2017 at 2:07