Skip to content

Instantly share code, notes, and snippets.

@yyyyyyuanfei
Created May 23, 2013 05:14
Show Gist options
  • Select an option

  • Save yyyyyyuanfei/5632893 to your computer and use it in GitHub Desktop.

Select an option

Save yyyyyyuanfei/5632893 to your computer and use it in GitHub Desktop.
Both `pos_e` and `pos_c` can be `nil`, if one is `nil` then return the other.
pos_beg = [pos_e || pos_c, pos_c || pos_e].min
@yyyyyyuanfei
Copy link
Copy Markdown
Author

返回pos_epos_c中小的那个,如果其中一个是nil,就返回另一个。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment