Thanks.
I always use DrRacket for editing racket code.
Jos.
> -Original Message-
> From: Greg Hendershott [mailto:greghendersh...@gmail.com]
> Sent: domingo, 29 de junio de 2014 5:55
> To: Jos Koot
> Cc: dev; jja.k...@gmail.com
> Subject: Re: [racket-dev] 2htdp/image
On Mon, Jun 23, 2014 at 9:44 PM, Jos Koot wrote:
> style. Writing this, the idea comes up in my mind that it should be possible
> to do some transformations to the recommended style by means of redex. Or
> may be by means of syntax-case while limiting the transformers to the
> desired level of exp
On Jun 27, 2014, at 5:29 PM, Robby Findler wrote:
> I've generally tried to keep the image arguments last to make nested
> compositions of functions easier to read. Since we have to keep frame
> for backwards compatibilities reasons regardless, I don't think we
> need to worry about making color
I've generally tried to keep the image arguments last to make nested
compositions of functions easier to read. Since we have to keep frame
for backwards compatibilities reasons regardless, I don't think we
need to worry about making color-frame's color argument optional.
Robby
On Fri, Jun 27, 201
On Jun 22, 2014, at 9:42 PM, Robby Findler wrote:
> Thanks! I've added these two functions.
>
> Robby
>
> On Sun, Jun 22, 2014 at 12:26 PM, Kevin Forchione wrote:
>>
>> On Jun 21, 2014, at 5:02 PM, Robby Findler
>> wrote:
>>
>> What do you think about a variant on center-crop called crop/a
FWIW, I think this is what the style guide would recommend. I found
the transformation to be pretty straightforward, except that I had to
rename on occurrence of 'H' to 'H2'. (I didn't try to test it, tho!)
Robby
(define (make-natural->rearrangement L (EQ? equal?))
(define N (nr-of-rearrangemen
tes, 24 de junio de 2014 2:12
> To: Jos Koot
> Cc: Asumu Takikawa; Kevin Forchione; dev@racket-lang.org;
> jja.k...@gmail.com
> Subject: Re: [racket-dev] 2htdp/image Feature Suggestion
>
> I think that the prefer-define-over-let applies only to the first let
> in this program.
>
efine (nr-of-rearrangements L EQ?) ...)
> (define (count-occcurrences E L EQ?) ...)
>
>> -----Original Message-
>> From: dev [mailto:dev-boun...@racket-lang.org] On Behalf Of
>> Asumu Takikawa
>> Sent: lunes, 23 de junio de 2014 7:35
>> To: Kevin Forchione
&g
ts L EQ?) ...)
(define (count-occcurrences E L EQ?) ...)
> -Original Message-
> From: dev [mailto:dev-boun...@racket-lang.org] On Behalf Of
> Asumu Takikawa
> Sent: lunes, 23 de junio de 2014 7:35
> To: Kevin Forchione
> Cc: dev@racket-lang.org
> Subject: Re: [racket-d
On Jun 23, 2014, at 12:03 PM, Kevin Forchione wrote:
> I’ve only skimmed the manual so far, but see it doesn’t address one of my
> questions: whether and when to favor functions such as first/rest/empty?,
> etc., over the Lisp-y car/cdr/null?, etc. I have noticed that some of these
> function
On Jun 22, 2014, at 10:35 PM, Asumu Takikawa wrote:
> On 2014-06-22 20:27:21 -0700, Kevin Forchione wrote:
>> Thanks! Is there any documentation or guide on which *styles* to prefer in
>> writing Racket code? I find myself scratching my head at times in these
>> matters!
>
> In recent Rac
On 2014-06-22 20:27:21 -0700, Kevin Forchione wrote:
>Thanks! Is there any documentation or guide on which *styles* to prefer in
>writing Racket code? I find myself scratching my head at times in these
>matters!
In recent Racket distributions and online docs there's now a style
manual:
Thanks! I've added these two functions.
Robby
On Sun, Jun 22, 2014 at 12:26 PM, Kevin Forchione wrote:
>
> On Jun 21, 2014, at 5:02 PM, Robby Findler
> wrote:
>
> What do you think about a variant on center-crop called crop/align
> that accepts a width, a height, an image, and an x-place and a
On Jun 21, 2014, at 3:22 PM, Matthias Felleisen wrote:
>
> Thanks. We will need to figure out how to accommodate keywords in a
> teachpack.
>
> In the meantime, write frame like this:
>
> (define (frame-2 img
> #:frame-color (frame-color 'black)
> #:backgro
On Jun 21, 2014, at 5:02 PM, Robby Findler wrote:
> What do you think about a variant on center-crop called crop/align
> that accepts a width, a height, an image, and an x-place and a
> y-place?
>
> That would seem to fit better into the library the way it's currently
> constructed.
>
> For wo
What do you think about a variant on center-crop called crop/align
that accepts a width, a height, an image, and an x-place and a
y-place?
That would seem to fit better into the library the way it's currently
constructed.
For working around the frame issue, how about just a color-frame
function t
Thanks. We will need to figure out how to accommodate keywords in a teachpack.
In the meantime, write frame like this:
(define (frame-2 img
#:frame-color (frame-color 'black)
#:background-color (background-color 'transparent)
#:frame-offset (
Hi guys,
I’ve been working with 2htdp/image and been struck by its monitor-oriented
coordinate system and its image-centric perspective, both of which have proven
a rich bed for new tools. I’ve found these two functions have been useful to me
and might be useful for others. I’ve particularly fou
18 matches
Mail list logo