Sha256: ae6e3d0d1a73e753a68184e1964e6e0a7444f27e5b9e00709146a92617035fd9

Contents?: true

Size: 150 Bytes

Versions: 396

Compression:

Stored size: 150 Bytes

Contents

#lang racket

(provide accumulate)

(define (accumulate lst op)
  (cond
    [(empty? lst) lst]
    [(cons (op (car lst)) (accumulate (cdr lst) op))]))

Version data entries

396 entries across 396 versions & 1 rubygems

Version Path
trackler-2.2.1.180 tracks/racket/exercises/accumulate/example.rkt
trackler-2.2.1.179 tracks/racket/exercises/accumulate/example.rkt
trackler-2.2.1.178 tracks/racket/exercises/accumulate/example.rkt
trackler-2.2.1.177 tracks/racket/exercises/accumulate/example.rkt
trackler-2.2.1.176 tracks/racket/exercises/accumulate/example.rkt
trackler-2.2.1.175 tracks/racket/exercises/accumulate/example.rkt
trackler-2.2.1.174 tracks/racket/exercises/accumulate/example.rkt
trackler-2.2.1.173 tracks/racket/exercises/accumulate/example.rkt
trackler-2.2.1.172 tracks/racket/exercises/accumulate/example.rkt
trackler-2.2.1.171 tracks/racket/exercises/accumulate/example.rkt
trackler-2.2.1.170 tracks/racket/exercises/accumulate/example.rkt
trackler-2.2.1.169 tracks/racket/exercises/accumulate/example.rkt
trackler-2.2.1.167 tracks/racket/exercises/accumulate/example.rkt
trackler-2.2.1.166 tracks/racket/exercises/accumulate/example.rkt
trackler-2.2.1.165 tracks/racket/exercises/accumulate/example.rkt
trackler-2.2.1.164 tracks/racket/exercises/accumulate/example.rkt
trackler-2.2.1.163 tracks/racket/exercises/accumulate/example.rkt
trackler-2.2.1.162 tracks/racket/exercises/accumulate/example.rkt
trackler-2.2.1.161 tracks/racket/exercises/accumulate/example.rkt
trackler-2.2.1.160 tracks/racket/exercises/accumulate/example.rkt