We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d8cab37 commit 8b8e831Copy full SHA for 8b8e831
modules/ln_core/list.scm
@@ -1,6 +1,6 @@
1
#|
2
LambdaNative - a cross-platform Scheme framework
3
-Copyright (c) 2009-2013, University of British Columbia
+Copyright (c) 2009-2020, University of British Columbia
4
All rights reserved.
5
6
Redistribution and use in source and binary forms, with or
@@ -41,7 +41,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
41
(define (list-notempty? lst) (and (list? lst) (not (null? lst))))
42
43
;; Make a list of length n, where each element is set to elem
44
-(define (make-list n elem)
+(define (make-list n #!optional (elem 0))
45
(if (zero? n) '()
46
(cons elem (make-list (- n 1) elem))))
47
0 commit comments