Guest User

Untitled

a guest
Mar 25th, 2011
390
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. java.lang.IllegalArgumentException: No single method: iseq of interface: funql.core.ISeq found for function: iseq of protocol: ISeq
  2.     at clojure.lang.Compiler$InvokeExpr.<init>(Compiler.java:2880)
  3.     at clojure.lang.Compiler$InvokeExpr.parse(Compiler.java:3063)
  4.     at clojure.lang.Compiler.analyzeSeq(Compiler.java:5371)
  5.  
  6. (defprotocol ISeq
  7.   "Protocol for types supporting iseq."
  8.   (iseq [this])
  9.   (iseq [this cls])
  10.   (iseq [this cls dir]))
  11.  
  12. (extend-type Vertex
  13.   ISeq
  14.   (iseq [v] (iseq v nil nil))
  15.   (iseq [v cls] (iseq v cls nil))
  16.   (iseq
  17.    [v cls dir]
  18.      (let [f (first-inc v cls dir)]
  19.        (if f
  20.      (lazy-cat (iseq f cls dir))
  21.      []))))
  22.  
  23. (extend-type Edge
  24.   ISeq
  25.   (iseq [e] (iseq e nil nil))
  26.   (iseq [e cls] (iseq e cls nil))
  27.   (iseq
  28.    [e cls dir]
  29.    (let [n (next-inc e cls dir)]
  30.      (lazy-cat [e] (and n (iseq n cls dir))))))
Advertisement
Add Comment
Please, Sign In to add comment