-
Notifications
You must be signed in to change notification settings - Fork 12
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
Somewhat tuned Rye solution #6
base: main
Are you sure you want to change the base?
Conversation
Jared made a great example! I tried to tune it in a little more, and use some more already available (but updated) functions like `group` and `contains` and `unpack`. He also proposed intersection\by and sort\by , which I added to Rye, but didn't use here at the end. Maybe he can and make code even nicer :)
} | ||
|
||
; Find anagrams from words file and keep transformations only | ||
word-anagrams: | ||
( split\quoted read %0098_words.txt "," `"` ) | ||
split\quoted read %0098_words.txt "," `"` ;" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Typo?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No :) .... Emacs Rye syntax highlighting did't detect the end of the string with "
so it colored all next lines as string, this comment was small hack to stop that. I need to fix the highlighter.
Thanks! That looks like it's taking much better advantage of the built-ins! |
Well, I did have to improve some of them (make them usable with blocks not just string for example) to make them usable here, so when you wrote the code you couldn't use them yet. |
You made a great Rye example! I just tried to tune it in a little more, and use some more already available (but some updated) functions like
group
andcontains
andunpack
.You also proposed
intersection\by
andsort\by
, which I added to Rye now, but didn't use here at the end. Maybe because I still don't fully understand the algo :P. I think I understand everything, but that part about transformation related to possible squares eludes me, probably I need to do some more thinking :)Anyhow, you said that we can post these and you will keep the PR open as additional info to examples. Great project!