Re: [racket-users] Scribble: unnumbered and unindexed sections

2016-09-04 Thread Matthew Flatt
Besides `#:style 'unnumbered` as William says, to avoid the duplicate key warnings, you more or less have to cons up a new name --- but it doesn't have to be a visibly distinct section name. You can either * use `#:tag "HandinX"` with a different "X" for each "Handin Instructions" section,

RE: [racket-users] Scribble: unnumbered and unindexed sections

2016-09-04 Thread Jos Koot
Would this do what you want? #lang scribble/base @section{a} @subsubsub*section{a} @subsubsub*section{a} @subsubsub*section{a} @section{b} @seclink["a" "section a"] @subsubsub*section{b} @subsubsub*section{b} @subsubsub*section{b} @section{b} @subsubsub*section{b} @subsubsub*section{b}

Re: [racket-users] Re: lambda and the equivalent define / "defun"

2016-09-04 Thread Sanjeev Sharma
if anyone stumbles on this later this is also discussed in Kent Dybvig's TSPL4 http://www.scheme.com/tspl4/start.html#./start:h6 from section 2.6: For example, the definitions of cadr and list might be written as follows. (define (cadr x) (car (cdr x))) (define (list . x) x) -- You

Re: [racket-users] Scribble: unnumbered and unindexed sections

2016-09-04 Thread 'William J. Bowman' via Racket Users
On Sun, Sep 04, 2016 at 11:50:21AM -0700, Shriram Krishnamurthi wrote: > Is there a way to have unnumbered and unindexed section? (Yes, these are > different issues.) > > It would be helpful to have unnumbered sections, à la \[sub]section* in LaTeX. You can use `@section[#:style 'unnumbered]`

Re: [racket-users] Re: lambda and the equivalent define / "defun"

2016-09-04 Thread Sanjeev Sharma
merci & danker - I had just done same-parity exercise using this but did not see the equivalence -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to

Re: [racket-users] Re: lambda and the equivalent define / "defun"

2016-09-04 Thread Gustavo Massaccesi
I hope these examples are enough to help with your problem: ;-- #lang racket (define (negative . s) (map - s)) (negative 1 2 3 -4) ; ==> '(-1 -2 -3 4) (define (multiply-by n . s) (map (lambda (x) (* n x)) s)) (multiply-by 5 1 2 3) ; ==> '(5 10 15) (define (count . s) (length s)) (count 1

[racket-users] Scribble: unnumbered and unindexed sections

2016-09-04 Thread Shriram Krishnamurthi
Is there a way to have unnumbered and unindexed section? (Yes, these are different issues.) It would be helpful to have unnumbered sections, à la \[sub]section* in LaTeX. It would be especially helpful to have unindexed sections. The real nuisance I'm trying to avoid is, say I have N sections

[racket-users] Re: lambda and the equivalent define / "defun"

2016-09-04 Thread Sanjeev Sharma
two "x" 's also work (define list (lambda x x)) -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to racket-users+unsubscr...@googlegroups.com. For more options,

[racket-users] lambda and the equivalent define / "defun"

2016-09-04 Thread Sanjeev Sharma
is there a define syntax equivalent to this lambda (define list (lambda x x x)) (list 1 2 3 4 5 "a") ;returns ;'(1 2 3 4 5 "a") I wanted to write subsets from SICP without passing the parameter as a list, and a simiar version of average (define nil '()) (define (subsets s) (if (null? s)