Skip to content

Commit d8dc5ec

Browse files
committed
CORE: remove unused-in-ln, deprecated predicate list-notempty?
This appears to be not used anywhere. If it is used elsewhere, it is better replaced! Complexity class: O(n) Suggested replacements: 1. `pair?` - test head only 2. in case of doubt wrt. input: once `list?` to test object being a propper list and `pair?` once the former succeeded.
1 parent c4a2478 commit d8dc5ec

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

modules/ln_core/list.scm

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,6 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
3737
|#
3838
;; list related extras
3939

40-
;; Check for empty lists - this one is better than using pair? for it!
41-
(define (list-notempty? lst) (and (list? lst) (not (null? lst))))
42-
4340
;; Make a list of length n, where each element is set to elem
4441
(define (make-list n #!optional (fill 0))
4542
(if (and (exact-integer? n) (not (negative? n)))

0 commit comments

Comments
 (0)