marketplace-2014/list-utils.rkt

8 lines
130 B
Racket
Raw Normal View History

2013-03-29 03:00:29 +00:00
#lang typed/racket/base
(provide list-max)
(: list-max : (Listof Integer) -> Integer)
(define (list-max xs)
(foldr max 0 xs))