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.119 tracks/racket/exercises/accumulate/example.rkt
trackler-2.2.1.118 tracks/racket/exercises/accumulate/example.rkt
trackler-2.2.1.117 tracks/racket/exercises/accumulate/example.rkt
trackler-2.2.1.116 tracks/racket/exercises/accumulate/example.rkt
trackler-2.2.1.115 tracks/racket/exercises/accumulate/example.rkt
trackler-2.2.1.114 tracks/racket/exercises/accumulate/example.rkt
trackler-2.2.1.113 tracks/racket/exercises/accumulate/example.rkt
trackler-2.2.1.111 tracks/racket/exercises/accumulate/example.rkt
trackler-2.2.1.110 tracks/racket/exercises/accumulate/example.rkt
trackler-2.2.1.109 tracks/racket/exercises/accumulate/example.rkt
trackler-2.2.1.108 tracks/racket/exercises/accumulate/example.rkt
trackler-2.2.1.107 tracks/racket/exercises/accumulate/example.rkt
trackler-2.2.1.106 tracks/racket/exercises/accumulate/example.rkt
trackler-2.2.1.105 tracks/racket/exercises/accumulate/example.rkt
trackler-2.2.1.104 tracks/racket/exercises/accumulate/example.rkt
trackler-2.2.1.103 tracks/racket/exercises/accumulate/example.rkt
trackler-2.2.1.102 tracks/racket/exercises/accumulate/example.rkt
trackler-2.2.1.101 tracks/racket/exercises/accumulate/example.rkt
trackler-2.2.1.100 tracks/racket/exercises/accumulate/example.rkt
trackler-2.2.1.99 tracks/racket/exercises/accumulate/example.rkt