this post was submitted on 23 Jun 2023
9 points (100.0% liked)
Code Golf
172 readers
1 users here now
Icon base by Delapouite under CC BY 3.0 with modifications to add a gradient
founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
I don't know about how y'all feel about submissions in dedicated golfing languages/esolangs like this, but
Vyxal - 14 characters/SBCS bytes (22 UTF-8 bytes)
ɾ×*vṄ
| |JøĊ⁋
Vyxal is a stack-based esolang designed to do well in code-golf competitions just like this one. It's far from the only golfing language in existence, there's many more like 05AB1E, Jelly and Thunno 2. This one is just one I made in 2020 (yes creative naming I know, I just couldn't think of anything better).
You can try the program online here
Explained:
For
input = 5
, the stack looks like so:As you can see, some built-ins automatically apply to each item in a list, as if you wrote
[f(x) for x in iterable]
.Once again, I don't mean to come in and ruin golf for everyone, I just want to see how such a language might be seen by the community.