Getting confused by syntax here, but what is the difference between:
foo[x][y]
and
foo[x, y]
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.
foo[x, n]returns n elements fromfoostarting from the xth element.foo[x][y]finds the xth element infooand returns its yth element.Here’s an example to demonstrate: