Fork me on GitHub
#clojure-spec
<
2018-10-08
>
kingcode00:10:37

What is the fastest way to tell whether one vector is a subsequence of another?

roklenarcic12:10:08

Probably the same algo than the one for substring search.

roklenarcic12:10:33

Knuth-Morris-Pratt or Boyer-Moore

kingcode00:10:06

sorry..wrong channel (I was thinking of using specs’ coll regex)

tianshu05:10:50

Hi, how can I know if there is a spec on a given keyword or not? seems s/spec? only detect spec object.

seancorfield05:10:29

(s/get-spec ::k) will return nil if no spec is registered (else will return the spec itself).