Stuart Sierra schrieb: > On Oct 31, 1:20pm, André Thieme <[EMAIL PROTECTED]> wrote: > > But unfortunately (make-lyst 1 2 3) ==> > > java.lang.ClassCastException: clojure.lang.Proxy__5307 cannot be cast > > to clojure.lang.ISeq > > > > Any ideas how this should be done so that it will work? > > I think the problem here is that IPersistentList is just an interface > -- it does not define any behavior. You probably need to proxy a > concrete class like PersistentList.
Simply replacing clojure.lang.IPersistentList with clojure.lang.PersistentList didn’t help. Although this time the error message is different: (make-lyst 1 2 3) ==> java.lang.IllegalArgumentException: No matching ctor found for class clojure.lang.Proxy__3761 Can anybody give a very simple/minimal implementation of lists/vectors/ maps in Clojure? A 5-20 lines (proxy ...) example that would allow me to say (def a (make-lyst 1 2 3)) and run several list functions on it? --~--~---------~--~----~------------~-------~--~----~ 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 To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/clojure?hl=en -~----------~----~----~----~------~----~------~--~---