PasteRack.org
Paste # 25966
2014-10-19 10:44:24

Fork as a new paste.

Paste viewed 80 times.


Embed:

#lang racket

(define (bat-score n)
  (+ (* 20 n) (bat-score (sub1 n)))

(bat-score 100)
(bat-score 200)
(bat-score 300)
(bat-score 400)

=>

prog:3:0: read: expected a `)' to close `('
  possible cause: indentation suggests a missing `)' before line 6
  context...:
   /home/stchang/plt601/racket/collects/syntax/module-reader.rkt:176:17: body
   /home/stchang/plt601/racket/collects/syntax/module-reader.rkt:173:2: wrap-internal
   lang:read-syntax
   /home/stchang/plt601/pkgs/scribble-pkgs/scribble-lib/scribble/private/manual-code.rkt:56:0: typeset-code15
   /home/stchang/racket/pasterack/tmp/25966/25966code.scrbl: [running body]
   /home/stchang/plt601/pkgs/scribble-pkgs/scribble-lib/scribble/run.rkt: [running body]