Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion apps/news/news.arc
Original file line number Diff line number Diff line change
Expand Up @@ -1920,7 +1920,7 @@
(def commentable (i) (in i!type 'story 'comment 'poll))

; By default the ability to comment on an item is turned off after
; 45 days, but this can be overriden with commentable key.
; 45 days, but this can be overridden with commentable key.

(= commentable-threshold* (* 60 24 45))

Expand Down
2 changes: 1 addition & 1 deletion brackets.rkt
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

; main reader function for []s
; recursive read starts with default readtable's [ parser,
; but nested reads still use the curent readtable:
; but nested reads still use the current readtable:

(define (read-square-brackets ch port src line col pos)
`(%brackets ,@(read/recursive port #\[ #f)))
Expand Down
2 changes: 1 addition & 1 deletion lang/module-begin.rkt
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
(anarki-eval expr)))

(let ()
; We evaluate each top-level exprssion in the file.
; We evaluate each top-level expression in the file.
(eval-here 'body)
...

Expand Down
2 changes: 1 addition & 1 deletion lib/defpat.arc
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
;TODO:
; - 'defpat does not rearrange patterns, so you must manually arrange
; from most specific to most generic patterns for now. Obviously it's
; possible to do this programatically but I will defer it for now.
; possible to do this programmatically but I will defer it for now.
; - code cleanup
;
;
Expand Down
2 changes: 1 addition & 1 deletion lib/files.arc
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
($.file-or-directory-modify-seconds path))

(def file-perms (path)
" Returns a list of the effective file permssions of `path'. "
" Returns a list of the effective file permissions of `path'. "
($.file-or-directory-permissions path))

(def file-size (path)
Expand Down
10 changes: 5 additions & 5 deletions lib/math.arc
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
(init-matrix dims 1))

(mac elt (mat pos)
"access the element of the matix given by co-ords listed in pos"
"access the element of the matrix given by co-ords listed in pos"
(if (cdr pos)
`(elt (,mat ,(last pos)) ,(butlast pos))
`(,mat ,(car pos))))
Expand Down Expand Up @@ -170,7 +170,7 @@ using gaussian elimination and returns a list of x's (N.B. not efficient for lar
;calculus fns

(def deriv (f)
"provides differential of a function of a single vairable"
"provides differential of a function of a single variable"
(fn (x)
(let dx (if (is x 0) 1d-9 (abs:* x 1d-9))
(/ (- (f (+ x dx))
Expand Down Expand Up @@ -529,7 +529,7 @@ using gaussian elimination and returns a list of x's (N.B. not efficient for lar
;data-fitting

(def least-squares-linear (data)
"data is expected in the form ((x1 y1)(x2 y2)...) returns list of co-efficients for powers of x in acsending order"
"data is expected in the form ((x1 y1)(x2 y2)...) returns list of co-efficients for powers of x in ascending order"
(if (< len.data 2) (err "cannot fit to less than 2 points"))
(withs (xs (map car data)
ys (map cadr data)
Expand All @@ -543,7 +543,7 @@ using gaussian elimination and returns a list of x's (N.B. not efficient for lar
(gauss-elim A B)))

(def least-squares-quadratic (data)
"data is expected in the form ((x1 y1)(x2 y2)...) returns list of co-efficients for powers of x in acsending order"
"data is expected in the form ((x1 y1)(x2 y2)...) returns list of co-efficients for powers of x in ascending order"
(if (< len.data 3) (err "cannot fit to less than 3 points"))
(withs (xs (map car data)
ys (map cadr data)
Expand All @@ -558,7 +558,7 @@ using gaussian elimination and returns a list of x's (N.B. not efficient for lar
(gauss-elim A B)))

(def least-squares-custom (data . fns)
"data is expected in the form ((x1 y1)(x2 y2)...), fns must each accept 1 argument, returns list of co-efficients for powers of x in acsending order"
"data is expected in the form ((x1 y1)(x2 y2)...), fns must each accept 1 argument, returns list of co-efficients for powers of x in ascending order"
(if (< len.data len.fns) (err "cannot fit to less points than component functions"))
(withs (xs (map car data)
ys (map cadr data)
Expand Down
2 changes: 1 addition & 1 deletion lib/streams.arc
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@

(def integers-from (n)
"creates the infinite stream of integers starting from n"
;; might want to change this so it doens't use memoization
;; might want to change this so it doesn't use memoization
(lazy-cons n (integers-from inc.n)))

;; variants of common list operations that return lazy streams
Expand Down
2 changes: 1 addition & 1 deletion main.rkt
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
; library or the GNU Readline library for its implementation.
;
; An undocumented feature of XREPL makes it possible to disable
; Readline support altogether by setting the "TERM" envrionment
; Readline support altogether by setting the "TERM" environment
; variable to "dumb" when running Racket at the command line, like so:
;
; $ TERM=dumb racket
Expand Down