How can I improve this Clojure function? -


I just wrote my first closure function based on very limited knowledge of language. For example, I'm not sure I should use lists or vectors, for example, I would like some feedback regarding the use and usage of the types. id = subject-id [subject-id] (sql / with-connection system / getenv "DATABASE_URL") (SQL / with-query-result result [" Selection entry_id entries where subject_ind =? "Subject-id] ([res ([] in the results)] (map (FN [line] (

  (deftest test-actor) For-subject-id (= ([[123] "321"] (Actor-ID-for-subject-id "123"))))   

If it makes a difference (And I think this happens) about my attributes of the returned data This involves the creation of the union in particular and the intersection of other sets returned by the same function.

< P> If the initial vector is empty, it is slightly more concise to use 'vec' instead of 'in'. It can express the intent more clearly, though the case of preference is high. < Pre> (vec (map: actor_id result)) < / Pre>

Comments

Popular posts from this blog

Python SQLAlchemy:AttributeError: Neither 'Column' object nor 'Comparator' object has an attribute 'schema' -

java - How not to audit a join table and related entities using Hibernate Envers? -

mongodb - CakePHP paginator ignoring order, but only for certain values -