1. 10 Apr, 2017 1 commit
    • Attila Lendvai's avatar
      Fix: earlier keys take priority in ALIST-HASH-TABLE and PLIST-HASH-TABLE · 0426bd2f
      Attila Lendvai authored
      Also record tests for the new behavior.
      
      This is a semantic change, but more in line with how alists and
      plists are defined in the CLHS.
      
      See '15.6. Association Lists' and 'property list' in the Glossary.
      
      Reported by Christoph Arenz to alexandria-devel in
      'Wrong handling of duplicate keys in alist-hash-table and plist-hash-table'.
      0426bd2f
  2. 27 Oct, 2016 2 commits
  3. 23 Aug, 2016 1 commit
    • Attila Lendvai's avatar
      numbers.lisp/lerp: The correct version is numerically stable, · 926a0666
      Attila Lendvai authored
      at the expense of an extra multiply. The unstable version can often be
      converted to a fast instruction on a lot of machines, though this is
      machine/implementation specific. As alexandria is more about correct code,
      than efficiency, and we're only talking about a single extra multiply,
      many would prefer the stable version.
      
      Patch by github.com/mfiano.
      926a0666
  4. 03 Apr, 2016 1 commit
  5. 27 Apr, 2015 1 commit
  6. 30 Jul, 2014 1 commit
  7. 12 May, 2014 1 commit
  8. 04 Mar, 2014 2 commits
  9. 16 Feb, 2014 1 commit
  10. 26 Jan, 2013 4 commits
  11. 26 Apr, 2012 1 commit
    • Nikodemus Siivola's avatar
      tweak EXTREMUM · 0c39310e
      Nikodemus Siivola authored
       Return NIL if the sequence is empty, instead of the NO-EXTREMUM nonsense.
      
       It was bad design, because it's not an error someone higher up the stack can
       sensibly handle, and handling it locally is too verbose and slow.
      
          (or (extremum ...) (error ...))
      
       expresses the common case succintly, and fits the pattern of existing
       sequence functions.
      
       If it is deemed necessary, we can also add &KEY DEFAULT, but that seems
       overkill and has little precedent in sequence functions.
      0c39310e
  12. 25 Apr, 2012 1 commit
  13. 22 Apr, 2012 2 commits
    • Nikodemus Siivola's avatar
      untabify tests · daa08725
      Nikodemus Siivola authored
        Yech. Phui. Tabs.
      daa08725
    • Nikodemus Siivola's avatar
      adjust tests · a8fa3994
      Nikodemus Siivola authored
        Workarounds for the Clisp and CMUCL failures.
      
        Newer Clisp's no longer have the stack-overflow for the hash-table test, so
        enable it too.
      a8fa3994
  14. 30 Mar, 2012 2 commits
  15. 20 Jan, 2012 2 commits
    • tpapp's avatar
      generic MEAN and MEDIAN, new function DISPLACE-ARRAY · 485544d4
      tpapp authored
       Objects other than sequences have means and medians (eg probability
       distributions, arrays, sequences/arrays wrapped in another object, etc), so
       it makes sense to make these functions generic.
      
       DISPLACE-ARRAY is a small utility function that is used in the implementation
       of MEDIAN for arrays, but is also of general utility because it makes the
       creation of displaced arrays simpler, dispensing with the need to specify the
       element type, and offering sensible defaults when one wants vectors.
      
       Also added tests for all the new functions/methods.
      485544d4
    • Jyrki Jaakkola's avatar
      36800ad1
  16. 09 Nov, 2011 1 commit
  17. 02 Nov, 2011 1 commit
  18. 29 Oct, 2011 3 commits
  19. 23 Sep, 2010 1 commit
  20. 05 Apr, 2010 1 commit
  21. 09 Mar, 2010 1 commit
  22. 12 Feb, 2010 1 commit
  23. 01 Nov, 2009 1 commit
  24. 16 Sep, 2009 1 commit
  25. 27 Jul, 2008 4 commits
  26. 01 Aug, 2008 1 commit
    • Nikodemus Siivola's avatar
      PROPER-LIST-LENGTH and related changes · 86f69d0a
      Nikodemus Siivola authored
      - New function: PROPER-LIST-LENGTH.
      
      - Share code between PROPER-LIST-LENGTH, LASTCAR, and SETF LASTCAR
        via a macrolet.
      
      - Use ENDP wrapped in SAFETY 3, to ensure proper detection of dotted
        lists.
      
      - Use PROPER-LIST-LENGTH instead of LIST-LENGTH in ROTATE, RANDOM-ELT,
        and SHUFFLE, and test that they signal an error for improper lists.
        (Thanks to Tobias Rittweiler)
      86f69d0a
  27. 31 May, 2008 1 commit