parse-number-range
2024-10-12
Parses LOOP's convenient "for-as-arithmetic" syntax into 5 simple values: from, to, limit-kind (:inclusive, :exclusive or nil if unbounded), by (step) and direction (+ or -)). Further related utilities are provided. Intended for easy implementation of analogous functionality in other constructs.
Author
Jean-Philippe Paradis <hexstream@gmail.com>
License
Public Domain
parse-number-range
Parses LOOP's convenient "for-as-arithmetic" syntax into 5 simple values: from, to, limit-kind (:inclusive, :exclusive or nil if unbounded), by (step) and direction (+ or -)). Further related utilities are provided. Intended for easy implementation of analogous functionality in other constructs.
Version:
1.0License:
Public DomainAuthors:
Jean-Philippe Paradis <hexstream@gmail.com>Dependencies:
cartesian-product-switch
enhanced-multiple-value-bind
map-bind