Permalink
Commits on Sep 16, 2016
  1. Fix overzealous take/2

    Add base case for (take 0 ...) and don't compute an extra value when n
    is 1. Ensure func is nullary and prefer (pos? n) to (> n 1).
    
    See clj-tests/next_and_take_test/0 from 4e1bacc for the test.
    yurrriq committed Sep 16, 2016
  2. Prefer dec/1 to (- n 1)

    yurrriq committed Sep 16, 2016
Commits on Sep 15, 2016
  1. Add clj to modules in lfe.app.src

    yurrriq committed Sep 15, 2016
Commits on Sep 13, 2016
  1. Try to appease R16 in map?/1

    yurrriq committed Sep 13, 2016
  2. Fix get-in-map issues

    Also, update HAS_MAPS/0 so it can actually be used in guards.
    Use a guard, (map? xmap), in -get-in-map/3 to be sure.
    
    Add tests for empty?/1 with maps and get-in-map/2.
    yurrriq committed Sep 13, 2016
  3. Update clj docs

    Document defn, defn-, fn, inc and dec.
    yurrriq committed Sep 13, 2016
  4. Update even? and odd?

    yurrriq committed Sep 13, 2016
  5. s/lambda/fn/g src/clj.lfe

    yurrriq committed Sep 13, 2016
  6. Add inc/dec

    yurrriq committed Sep 13, 2016
  7. Add defn, defn- and fn

    Add a decent defn macro, dogfood it in clj.lfe and test it a little more
    in clj-tests.lfe
    
    Add simple aliases, defn- and fn, for defun and lambda, respectively.
    
    Close rvirding/lfe#274
    Close rvirding/lfe#270
    yurrriq committed Sep 13, 2016
  8. Fix typo in clj docs

    yurrriq committed Sep 13, 2016
  9. Ensure the clj tests are run

    Separate the rebar3 commands in the travis make target and be explicit
    about which modules to test, namely clj-tests and prop_lfe_doc.
    yurrriq committed Sep 13, 2016
  10. Flesh out clj docs

    yurrriq committed Sep 13, 2016
  11. Clean up clj docstrings

    yurrriq committed Sep 13, 2016
  12. Add if-not-match and test doto

    yurrriq committed Sep 13, 2016
  13. Add remaining tests, except doto

    yurrriq committed Sep 13, 2016
  14. Clean up condp definition

    yurrriq committed Sep 13, 2016
  15. Clean up some-> and some->>

    yurrriq committed Sep 13, 2016
Commits on Sep 12, 2016
  1. Simplify if-not

    yurrriq committed Sep 12, 2016
  2. Add doto macro

    yurrriq committed Sep 12, 2016
Commits on Sep 9, 2016
  1. Add more (cursory) tests

    - if-not
    - when-not
    - not=
    - unicode?
    - reference?
    - map?
    yurrriq committed Sep 9, 2016
Commits on Sep 5, 2016
  1. Add tests for record? and queue?

    See #266
    re: unexpected is_record/2 behaviour.
    yurrriq committed Sep 5, 2016
Commits on Sep 3, 2016
  1. Add stubs for remaining tests

    yurrriq committed Sep 3, 2016
  2. Add several tests (predicates and get-in/3)

    Export boolean? too. Oops.
    yurrriq committed Sep 3, 2016
  3. Update and test condp

    Use pattern matching instead of lists:member/2 and
    throw an error instead of returning an error tuple.
    yurrriq committed Sep 3, 2016
  4. Vertically align all the things

    ... and remove the unnecessary loaded-clj/0.
    yurrriq committed Sep 3, 2016