Skip to content

Allow ˢ to enclose subjects and fix ngn:433 scalar rank test - #157

Merged
jph00 merged 1 commit into
mainfrom
pr/allow-to-enclose-subjects-and-fix-ngn-433-scalar
Dec 2, 2026
Merged

jph00 merged 1 commit into
mainfrom
pr/allow-to-enclose-subjects-and-fix-ngn-433-scalar

Conversation

@jph00

@jph00 jph00 commented Dec 2, 2026

Copy link
Copy Markdown
Contributor

Allow the postfix scalar operator ˢ to enclose subjects as well as functions by routing value operands through Primitive::Enclose, giving xˢ full parity with ⊂x under automatic differentiation (∂), tracing (•explain), and lazy fusion. This lets expressions such as 1ˢι1, ⊽⍣3ˢ 1, and αˢ∇¨1↓ω omit the parentheses previously required around ⊂.

Updates ngn:433 in tests/reference/ngn.bpl to 1ˢι1 (fixing the CI failure left after atoms became searchable in search_frame), replaces 61 other parenthesized (⊂...) enclosures across tests, lib/dyalog.bpl, and docs, and updates the ˢ documentation in Scripts, Arrays, Principles, Glyphs, and llms.txt.

@jph00 jph00 added the enhancement New feature or request label Dec 2, 2026
@jph00
jph00 merged commit e3f232a into main Dec 2, 2026
@jph00
jph00 deleted the pr/allow-to-enclose-subjects-and-fix-ngn-433-scalar branch December 2, 2026 04:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant