Activity for MrDevel0perâ€
Type | On... | Excerpt | Status | Date |
---|---|---|---|---|
Suggested Edit | Post #290109 |
Suggested edit: Fix plurality of byte: https://www.britannica.com/dictionary/byte (more) |
declined | about 1 year ago |
Edit | Post #290169 | Initial revision | — | about 1 year ago |
Answer | — |
A: Single digit Roman numeral [Swift], 114 bytes func y(x:String)->Int?{return ["I":1,"V":5,"X":10,"L":50,"C":100,"D":500,"M":1000].filter{$0.key==x}.first?.value} Try it online! Explanation + Non-Golfed Version The non-golfed version of this function would go one of two ways; the argument could be iterated ... (more) |
— | about 1 year ago |