PasteRack.org
Paste # 78644
2019-04-04 20:47:37

Forked from paste # 78464.

Fork as a new paste.

Paste viewed 234 times.


Embed:

#lang racket
(define(volume-sphere radius) 
  (/ (* 4 3.14 radius radius radius) 3))
                     
   (define (volume-shell inner-radius outer-radius)
     (- (volume-sphere outer-radius) (volume-sphere inner-radius))
                     
   (volume-shell 1 2)  

=>

prog:5:3: read: expected a `)' to close `('
  possible cause: indentation suggests a missing `)' before line 8
  context...:
   /home/pasterack/racket68/collects/syntax/module-reader.rkt:186:17: body
   /home/pasterack/racket68/collects/syntax/module-reader.rkt:183:2: wrap-internal
   /home/pasterack/racket68/collects/racket/../syntax/module-reader.rkt:65:9: lang:read-syntax
   /home/pasterack/racket68/share/pkgs/scribble-lib/scribble/private/manual-code.rkt:112:0: get-tokens
   /home/pasterack/racket68/share/pkgs/scribble-lib/scribble/private/manual-code.rkt:56:0: typeset-code15
   /home/pasterack/pasterack/tmp/78644/78644code.scrbl: [running body]
   loop
   ...cket/cmdline.rkt:179:51
   /home/pasterack/racket68/share/pkgs/scribble-lib/scribble/run.rkt: [running body]