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