Created
May 23, 2013 05:14
-
-
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| pos_beg = [pos_e || pos_c, pos_c || pos_e].min |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
返回
pos_e和pos_c中小的那个,如果其中一个是nil,就返回另一个。