...
Code Block | ||||
---|---|---|---|---|
| ||||
x = 5; y = 6; x <=> y // returns -1 x <=> x // returns 0 y <=> x // returns 1 p = "aab"; q = "abb"; "a"p cmp "b"q // returns -1 "a"p cmp "a"p // returns 0 "b"q cmp "a"p // returns 1 |
Like
Like
takes a regular expression as its second argument and returns true if it matches the string given as its first argument. Arguments to these operators can be any valid expression.
...