Title is the entire question. Can someone give me a reason why this happens?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Yes – because it does begin with the empty string. Indeed, the empty string logically occurs between every pair of characters.
Put it this way: what definition of ‘starts with’ could you give that would preclude this? Here’s a simple definition of ‘starts with’ that doesn’t:
‘x starts with y if the first
y.Lengthcharacters of x match those of y.’An alternative (equivalent) definition:
‘x starts with y if
x.Substring(0, y.Length).Equals(y)‘