File "...documents\vyxal\vyxal\elements.py", line 368, in <lambda>
(NUMBER_TYPE): lambda: len(eval(str(lhs))),
NameError: name 'x' is not defined
Thank you python very cool
(and no that totally isn't because vs code takes a bit longer to save files because it auto-formats with black, meaning that there can be a delay between running the saved file and the error message)
Vyxal, 11 bytes
ɾ2ḋvJ'²ṫ$∑=
Try it Online!
Thanks for the offer @lyxal, but nah, I don't need flags.
ɾ2ḋvJ'²ṫ$∑= Full program, input: n, the hypotenuse
ɾ 1..n
2ḋ All pairs (2-combinations) without replacement
vJ Append n to each pair
' Filter ...
@AaroneousMiller hey don't blame me for the lack of existence of futuristic technology I'm a golfing language designer, not a hardware engineer for goodness sake ;p
most notably inside closets and computer labs inside libraries
it's when it gets dark inside that you become friends with a goat, barney the dinosaur, a spade, a reindeer, a bluebird, several robots and sentient puppets who sell you rings
I figured out how to get the last character of a string, but it puts ⟨⟨⟨⟨⟩⟩⟩⟩ on the stack after it. If I can figure out how to get rid of that, I can get az/t from various builtins, which could allow me to get other stuff.
Also, if I can get literally any number other than -1, 0, or 1, I can get inf, so arbitrary numbers would be pretty handy if I can figure out how to get them.
Nice, I got rid of the garbage.
Ooh, turns out it can get the last element of a list as well
Well, I can use t/st to get a string without the last character, but it's another exponential thing. However, it will allow me to get any character in the uppercase or lowercase alphabet, meaning that I can do urL or something to increment repeatedly, and I can grab a C from it as well, so this is crackded