Re: Problems extending sequences

2012-07-28 Thread Vinzent
nth is used by the clojure printer (see print-method). Try the following code: (do (ConsCell. 1 nil) :ok) It looks like you have to implement Sequential in order to get nth working on your datasctructure. суббота, 28 июля 2012 г., 10:33:48 UTC+6 пользователь JvJ написал: I'm trying to create

Problems extending sequences

2012-07-27 Thread JvJ
I'm trying to create a new ISeq type, just to try to get the hang of extending sequences. It's not working, though. As far as I can tell, I've implemented all necessary methods. However, I still get an error when attempting to create an instance of the type. When I enter the following in