Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add additional J solutions #2

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open

Conversation

tikkanz
Copy link
Contributor

@tikkanz tikkanz commented May 15, 2021

Solution 2 works on a pair of characters at a time (not very Jish)
Solution 3 separates the string into a list of even indexes and a list of odd indexes and then processes those lists as a whole.

Solution 2 works on a pair of characters at a time (not very Jish)
Solution 3 separates the string into a list of even indexes and a list of odd indexes and then processes those lists as a whole.
@tikkanz tikkanz marked this pull request as ready for review May 15, 2021 04:01
Transposing the columns of even and odd indices means we can `insert` our verb between them.
This way they are available in the session if the definitions are loaded from a script.
Load the script to the J terminal in VSCode (Ctrl+L)
Send lines in the Note to the terminal (Ctrl+Enter)
Copy link
Owner

@codereport codereport left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔥

@codereport
Copy link
Owner

will merge when conflicts are resolved

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants