Skip to content
Snippets Groups Projects
This project is mirrored from ssh://github.com/haskell/array.git. Pull mirroring updated .
  1. Jun 17, 2025
  2. Jun 11, 2025
  3. Dec 20, 2024
  4. Dec 18, 2024
  5. Dec 17, 2024
  6. Nov 26, 2024
  7. Nov 15, 2024
  8. Oct 17, 2024
  9. Sep 08, 2024
  10. Aug 25, 2024
  11. Aug 24, 2024
    • Lei Zhu's avatar
      Import unsafeIndex from GHC.Arr instead of GHC.Ix · 9399614c
      Lei Zhu authored
      9399614c
    • Lei Zhu's avatar
      Building ci · 300e346a
      Lei Zhu authored
      300e346a
    • meooow's avatar
      Add fold functions for arrays · 9dd4cc32
      meooow authored and Lei Zhu's avatar Lei Zhu committed
      At the moment it is quite difficult to perform some folds on some
      arrays.
      
      * In general, arrays can be folded over by folding over the range of
        indices and then indexing into the array. This is a little cumbersome,
        and also inefficient when folding right-to-left because Ix does not
        offer reversed range generation.
      * Alternately, Array has a Foldable instance which works great, but
        UArray cannot be Foldable. Folds on UArray can instead be done via
        elems. Due to list fusion, this works out well for some folds (foldr,
        foldl'), but not others (foldr').
      * For mutable arrays, there are no alternate ways to fold.
      
      This commit adds some commonly used folds for arrays and mutable arrays
      to improve this situation.
      9dd4cc32
    • Lei Zhu's avatar
      Add since annotation for genArray · 47143aad
      Lei Zhu authored
      47143aad
  12. Jul 25, 2024
  13. May 17, 2024
  14. Mar 08, 2024
  15. Feb 29, 2024
  16. Feb 28, 2024
  17. Jan 26, 2024
  18. Nov 08, 2023
  19. Sep 27, 2023
  20. Sep 08, 2023
  21. Jul 09, 2023
  22. Jul 02, 2023
  23. Jun 18, 2023
  24. Jun 15, 2023
  25. May 04, 2023
Loading