Timeline for Wait, what language is this?
Current License: CC BY-SA 4.0
4 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Mar 7, 2019 at 1:25 | comment | added | dfeuer |
You can get it down to 48 bytes with PartialTypeSignatures : main=print(toEnum 0::_=>Num a=>a) . Also, your TIO link is out of date.
|
|
Jun 23, 2018 at 12:02 | history | edited | Laikoni | CC BY-SA 4.0 |
added 118 characters in body
|
Jun 22, 2018 at 18:06 | comment | added | Ørjan Johansen |
While looking at this code borrowed into the polyglot (where the parentheses give some trouble), I remembered that GHC supports the one byte shorter syntax toEnum 0::Num a=>Enum a=>a .
|
|
Feb 21, 2018 at 14:30 | history | answered | Laikoni | CC BY-SA 3.0 |