marketplace-2014/list-utils.rkt

8 lines
123 B
Racket

#lang racket/base
(provide list-max)
;; list-max : (Listof Integer) -> Integer
(define (list-max xs)
(foldr max 0 xs))