Closed Maltysen closed 6 years ago
Very nice! What are you planning to use .!
for? Maybe a divisor built-in, which would currently save 3 bytes per usage compared to *M{yP
.
Given that we have no other use for .!
currently, I'm going to leave .!
intact, but the rest seems good.
.!
could be "none" in the same vein as .A
and .E
?
I really think .!
would be suited as a divisor built-in, because:
*M{yP
.!*F
(just 1 byte shorter).@Mr-Xcoder Why not move divisor to (
instead?
@Steven-Hewitt That's even better indeed. I didn't know (
was available.
There's no difference between tuples and lists anymore to Pyth, and nothing except (
returns tuples... it's moot and can be replaced. I haven't seen a solution use (
at all the entire time I've used the language ([
always works instead).
There's already some special casing for
*
inF
, so I went all the way and replaced.!
with*F
. For example: you can*FT
, or*F12.345
which calls the existing factorial macro. Not only does this clear up a char for later use, but it also makes mapping factorial much easier like:*MT
for a list of factorials[0,10)
.