pyth
pyth copied to clipboard
Japt-like constants and functions
https://ethproductions.github.io/japt/
- [ ] AEIOU(Y)
- [ ] Shorthand for 10~16
- [ ] shoco/smaz text compression function
- [ ] Newlines vs Tabs vs Spaces
- [ ] QWERTY array
- [ ] Golden Ratio and Tau (Pi * 2)
- [ ] Truthy/Falsey shortcut
- [ ] Simple vs Regex replace
- [ ] String search by result vs count
- [ ] 2D array manipulation
- [ ] String/Array "chopping"
- [ ] Millisecond pauses/timer
- [ ] Co-prime of two numbers
- [ ] GCD/LCM of two numbers
- [ ] Bijective numbers
I really doubt that isaacg1 will implement a random list of suggestions without any motivation why they should be implemented. It's not the goal of Pyth to have a token for every possible scenario.
Also, some things are already pretty short in Pyth, GCD with i, Truthy/Falsy evaluation with !!, simple replace with X, regex replace with :.
@jakobkogler It would be great to see optimizations that understand where these "less used" functions are coming from.
I wrote you earlier, because I wanted to avoid that you are doing a lot of hard work for nothing. I really doubt that these lists will be useful.
E.g. look at #224, has any of these suggestions been implemented?