getting-started-strings/quickref.tex
author anand
Fri, 12 Nov 2010 01:00:49 +0530
changeset 493 62b93bfac3cd
parent 436 e62bc810999c
permissions -rw-r--r--
internal review not done for `getting started with symbolics`
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
436
e62bc810999c Cleaned up getting started with strings LO.
Puneeth Chaganti <punchagan@fossee.in>
parents: 313
diff changeset
     1
Creating a string:\\
e62bc810999c Cleaned up getting started with strings LO.
Puneeth Chaganti <punchagan@fossee.in>
parents: 313
diff changeset
     2
{\ex \lstinline|    s = ``Hello World''|} -- Single quotes and triple
e62bc810999c Cleaned up getting started with strings LO.
Puneeth Chaganti <punchagan@fossee.in>
parents: 313
diff changeset
     3
quotes can also be used.  
313
b9b7bfce773e Getting started with strings LO - script and questions.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
     4
436
e62bc810999c Cleaned up getting started with strings LO.
Puneeth Chaganti <punchagan@fossee.in>
parents: 313
diff changeset
     5
Accessing individual elements:\\
e62bc810999c Cleaned up getting started with strings LO.
Puneeth Chaganti <punchagan@fossee.in>
parents: 313
diff changeset
     6
{\ex \lstinline|   s[5]|} -- Elements can be accessed with their index
313
b9b7bfce773e Getting started with strings LO - script and questions.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
     7
436
e62bc810999c Cleaned up getting started with strings LO.
Puneeth Chaganti <punchagan@fossee.in>
parents: 313
diff changeset
     8
Strings are immutable.