> On a similar note, are you using Python's approach to characters (they are
> simply a string of length 1)?

Yes, that's exactly what we're doing. As an aside note, the fact that
Python is so dynamic allows us to do some really interesting things
with sequences:

https://github.com/halgari/clojure-py/blob/master/clojure/lang/indexableseq.py

These 24 lines of python code allow us to create a seq out of any
object in Python that supports .__getitem__ So out-of-the box, you can
do treat python strings as sequences:

user=> (first "foo")
"f"

That IndexableSeq works with python lists, tuples, unicode, strings, etc.

Timothy

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to