开发者

Define a scheme procedure

I need helpwriting a scheme procedure that takes two lists as inputs and the outputs an indication as to whether l开发者_Python百科ist2 is less than list1.

(define (analyze list1 list2


Definition:

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

Usage:

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

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜