Skip to content
Snippets Groups Projects
Forked from alexandria / alexandria
Source project has a limited visibility.
  • Jan Moringen's avatar
    8b89a71b
    use EMPTYP instead of e.g. PLUSP and LENGTH were appropriate · 8b89a71b
    Jan Moringen authored
    EMPTYP usually (except, maybe, for some user-defined sequence types) has
    two advantages:
    
    1. it has O(1) runtime while LENGTH can be O(n)
    
    2. it can work on user-defined, infinite sequences (given implementation
       support and integration of ALEXANDRIA:EMPTYP with the
       implementation's mechanism as is the case for SBCL)
    8b89a71b
    History
    use EMPTYP instead of e.g. PLUSP and LENGTH were appropriate
    Jan Moringen authored
    EMPTYP usually (except, maybe, for some user-defined sequence types) has
    two advantages:
    
    1. it has O(1) runtime while LENGTH can be O(n)
    
    2. it can work on user-defined, infinite sequences (given implementation
       support and integration of ALEXANDRIA:EMPTYP with the
       implementation's mechanism as is the case for SBCL)