Sha256: bbccd4675e68d173ea6c01ff8745ea5b5192b8736f3927041a9435fb639c9937

Contents?: true

Size: 189 Bytes

Versions: 396

Compression:

Stored size: 189 Bytes

Contents

(defpackage #:grains
  (:use #:cl)
  (:export #:square #:total))

(in-package #:grains)

(defun square (n) (expt 2 (1- n)))

(defun total ()
  (loop for n from 1 to 64 summing (square n)))

Version data entries

396 entries across 396 versions & 1 rubygems

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