Timeline for The vanilla factorial challenge
Current License: CC BY-SA 4.0
3 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Aug 31, 2023 at 13:25 | comment | added | Jitse |
@TheEmptyStringPhotographer thanks for your feedback! In Python, True == 1 , so it is generally accepted to leave it at that. Also, the f= is required because the lambda is recursive.
|
|
Aug 24, 2023 at 9:42 | comment | added | The Empty String Photographer |
This does not work. This outputs True for 0 when it should output 1 . You can fix this by replacing n<1 with +(n<1) to cast it to an integer. You can also remove f= to save 2 bytes.
|
|
Sep 29, 2021 at 7:27 | history | answered | Jitse | CC BY-SA 4.0 |