1.2.0 permalink Arrow_down_16x16



  • (simple-completions symbol-string package)

0 Examples top

Log in to add / edit an example.

See Also top

Log in to add a see also.

Plus_12x12 Minus_12x12 Source swank/commands/completion.clj:92 top

(defslimefn simple-completions [symbol-string package]
   (let [[sym-ns sym-name] (symbol-name-parts symbol-string)
		 potential         (concat (potential-completions (when sym-ns (symbol sym-ns)) (ns-name (maybe-ns package)))
								   (potiential-classes-on-path symbol-string))
         matches           (seq (sort (filter #(.startsWith #^String % symbol-string) potential)))]
     (list matches
           (if matches
             (reduce largest-common-prefix matches)
   (catch java.lang.Throwable t
     (list nil symbol-string))))
Vars in swank.commands.completion/simple-completions: let list reduce
Used in 0 other vars

Comments top

No comments for simple-completions. Log in to add a comment.