syntax for case ranges

Sultan thysultan at gmail.com
Fri Jan 31 09:57:07 UTC 2020


For example, the following:

switch (value) {
    case 0...9: break
    case 'a'...'z': break
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20200131/a88c1c0d/attachment.html>


More information about the es-discuss mailing list