Scheme 2020
Scheme 2020

Reputation: 111

Define a scheme procedure

I need helpwriting a scheme procedure that takes two lists as inputs and the outputs an indication as to whether list2 is less than list1.

(define (analyze list1 list2

Upvotes: 1

Views: 149

Answers (1)

ceving
ceving

Reputation: 23764

Definition:

(define (analyze list1 list2)
  (< (length list1) (length list2)))

Usage:

(analyze (list 1) (list 2 3)) -> #t

Upvotes: 1

Related Questions