Skip to content

Commit 538be4c

Browse files
CollReduce and KVReduce protocols (#961)
Fixes #927 --------- Co-authored-by: Noah Bogart <noah.bogart@hey.com>
1 parent cd81dc5 commit 538be4c

File tree

14 files changed

+737
-296
lines changed

14 files changed

+737
-296
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
55
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

77
## [Unreleased]
8+
### Added
9+
* Added the `CollReduce` and `KVReduce` protocols in `basilisp.core.protocols` and implemented `reduce` in terms of those protocols (#927)
10+
811
### Changed
912
* Improved on the nREPL server exception messages by matching that of the REPL user friendly format (#968)
1013

Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
DOCSOURCEDIR = "./docs"
22
DOCBUILDDIR = "./docs/_build"
33

4+
.PHONY: clean-docs
5+
clean-docs:
6+
@rm -rf ./docs/build
7+
48
.PHONY: docs
59
docs:
610
@poetry run sphinx-build -M html "$(DOCSOURCEDIR)" "$(DOCBUILDDIR)"

docs/api/core/protocols.rst

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
basilisp.core.protocols
2+
=======================
3+
4+
.. toctree::
5+
:maxdepth: 2
6+
:caption: Contents:
7+
8+
.. autonamespace:: basilisp.core.protocols
9+
:members:
10+
:undoc-members:

docs/interfaces.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,5 @@ In day-to-day usage, you will not typically need to use these interfaces, but th
2727
.. automodule:: basilisp.lang.interfaces
2828
:members:
2929
:undoc-members:
30-
:exclude-members: seq_equals
30+
:exclude-members: ReduceFunction, seq_equals
3131
:show-inheritance:

0 commit comments

Comments
 (0)