On Monday, 4 April 2022 at 13:32:19 UTC, Steven Schveighoffer
wrote:
This looks more like lisp or scheme. You know this is a forum
for the D programming language?
This was the same question in my mind.
On Monday, 4 April 2022 at 12:57:28 UTC, V3nom wrote:
define the lists:
(define liste (cons 10(cons 20(cons 30(cons 40 ' ())
(define liste2 (cons 20(cons 30(cons 10(cons 40 ' ())
define the "function":
(define (listapp list1 list2)(
if (null? (cdr list1))
On 4/4/22 8:57 AM, V3nom wrote:
define the lists:
(define liste (cons 10(cons 20(cons 30(cons 40 ' ())
(define liste2 (cons 20(cons 30(cons 10(cons 40 ' ())
This looks more like lisp or scheme. You know this is a forum for the D
programming language?
-Steve
define the lists:
(define liste (cons 10(cons 20(cons 30(cons 40 ' ())
(define liste2 (cons 20(cons 30(cons 10(cons 40 ' ())
define the "function":
(define (listapp list1 list2)(
if (null? (cdr list1))
(cons (car list1) (listapp list2 (cdr list1)))