Why does this fail L is [1,2,3,4], and this works: L = [1,2,3]?
But L is 1, and L = 1 both work the same.
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.
isshould only be used when evaluating arithmetic operations on the right-hand side.i.e.:
is/2evaluates the right-hand structure as an arithmetic expression. If it is not a valid arithmetic expression or a number,is/2fails. Otherwise, the number to which the arithmetic expression evaluted is unified with the [presumably] unbound left-hand value.