Implement more operators, trains, create playground, bump to v0.3.0#5
Merged
Implement more operators, trains, create playground, bump to v0.3.0#5
Conversation
added 25 commits
March 27, 2026 01:23
Add aplwiki_simple_examples test covering all 30 examples from
aplwiki.com/wiki/Simple_examples. 16 examples are actively tested,
14 are commented out with reasons (missing ⌿, ∈, array indexing
for reading, dyadic trains, ⎕←).
Also fixes two bugs discovered by the examples:
- Reduce now works along last axis for higher-rank arrays
(+/ on a matrix reduces each row, not the whole array)
- 1-element arrays now broadcast like scalars in dyadic ops
(',' ≠ 'text' now works correctly)
- Add ⌿ (reduce first axis) and ⍀ (scan first axis) - Add ∈ (membership): A∈B returns 1 where elements of A appear in B - Add A[i] array indexing for reading (1-based) - Add dyadic train support: ⍺(f g h)⍵ and ⍺(f g)⍵ - Add ⊆ ⌷ ∊ to train function-reference recognition - Allow grammar shift/reduce conflicts (error_on_conflicts false) - Uncomment all feasible APL Wiki examples (10 newly enabled)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.