Sha256: 032bc9d6e2b1306f59d33bc3567583aa9af83e4b3d17dbcedfc21d45e1fa468c
Contents?: true
Size: 491 Bytes
Versions: 62
Compression:
Stored size: 491 Bytes
Contents
abstract class Error() of InvalidWindowSize | InvalidDigit {} class InvalidWindowSize() extends Error() { shared actual default Boolean equals(Object that) => that is InvalidWindowSize; } class InvalidDigit(Character c) extends Error() { shared actual default Boolean equals(Object that) { if (is InvalidDigit that) { return that.c == c; } return false; } } Integer|Error largestProduct(String digits, Integer window) { return nothing; }
Version data entries
62 entries across 62 versions & 1 rubygems