different identifier in the for().
On Friday, June 14, 2019 at 12:46:54 PM UTC-4, David Storrs wrote:
>
>
>
> On Fri, Jun 14, 2019 at 10:45 AM Sanjeev Sharma > wrote:
>
>> within this for loop is there any way to access different pieces of the
>> description and amt? c
cat is from srfi/54
On Friday, June 14, 2019 at 10:45:10 AM UTC-4, Sanjeev Sharma wrote:
>
> within this for loop is there any way to access different pieces of the
> description and amt? car-ing and cdr-ing for example?
>
> Or move the identifier definitions into the let*, an
within this for loop is there any way to access different pieces of the
description and amt? car-ing and cdr-ing for example?
Or move the identifier definitions into the let*, and pass those to for in
some way?
(let*((ratio 9/12))
(for((description(list "this" "that"))
(amt(list 4467.
I believe "you won't believe ..." tests out better (higher click through)
in scientific advertising circles than "I can't believe ..." .
On Thursday, April 25, 2019 at 4:06:41 PM UTC-4, Jay McCarthy wrote:
>
> (ninth RacketCon) on July 13th, 2019
>
> Speakers Announced!
>
> https://con.rack
WHOPS ... SRFI/54
On Friday, March 15, 2019 at 1:57:03 PM UTC-4, sdgu...@gmail.com wrote:
>
> Hi all,
>
> I've been looking through the docs for a way to print decimals to a
> defined precision.
>
> I can get close to what I want using something like ~a and giving it a set
> width without h
SRFI 57, the function cat
differs from ~r in several areas, but looks like a decent alternative
On Friday, March 15, 2019 at 1:57:03 PM UTC-4, sdgu...@gmail.com wrote:
>
> Hi all,
>
> I've been looking through the docs for a way to print decimals to a
> defined precision.
>
> I can get close t
I'm getting much faster startup times.
And the initial freeze when loading a file after initial startup - is that
actually faster or has it been amortized using lazy techniques?
On Monday, November 19, 2018 at 6:35:43 PM UTC-5, Matthew Butterick wrote:
>
>
> > On Nov 19, 2018, at 2:06 PM, Mat
Hope you get many more accolades.
Your work keeps me curious & engaged intellectually long after I left
programming partly due to lack of curiosity among my colleagues and my own
lack of curiosity with the methods available to me.
On Wednesday, September 26, 2018 at 6:53:34 PM UTC-4, Matthew
I didn't realize (though I should have) that the comment could be taken
that way.
I realize you were not writing anything about the Turing language, but the
title of the essay triggered some memories for me of what my classmates and
later my professional colleagues used to talk about. And for
"Turing is useless" ...
While I worked as a programmer I used to complain quite bitterly about
university comp sci departments that had NIH (not invented here) syndrome
and a captive audience.
I learned Turing as my 2nd programming language. I'm sure the only reason
it could have been taug
the specific case I had in mind was near this
(let ([unless? odd?])
(for/sum ([x '(1 2 3 4 5)]
#:unless (uless? x))
x)) ;6
but as long as one is defaulting #:unless
PLUS #unless is common to all the for's across some arbitrary scope,
ideally one could elide
I haven't done this in a while & the config / build from
src/cs/c/
using racket 7 source with built packages failed this morning.
Are the READMEs still up to date?
--
You received this message because you are subscribed to the Google Groups
"Racket Users" group.
To unsubscribe from this g
UTC-4, gneuner2 wrote:
>
>
> On 8/2/2018 7:45 PM, Sanjeev Sharma wrote:
> > can racket's #: keywords be finagled / coerced into a parameterizable
> > form?
>
> ???
>
> Certainly you can pass a parameter to a keyword argument, and/or make a
> parameter the
can racket's #: keywords be finagled / coerced into a parameterizable
form?
--
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...@googlegro
SRFI 54 - ever need a 4-character "thousands" separator? Bharat has units
called lakhs & crores, instead of thousands
I think there was a numberphile episode on it. French, Dutch, Babylonian,
Indian ...
Just one of the things I needed recently; I've used a bunch of SRFI 54
features over the
gh to do this. This code uses my animated-canvas%
>>>> package, which is still on planet. I've also attached a gif of it. [I had
>>>> never used the animated gif routines in Racket before, but they were pretty
>>>> easy to use.] I've also attached an an
, March 26, 2018 at 8:53:36 PM UTC-4, Sanjeev Sharma wrote:
>
> what. the. heck.
> is going on here?
>
>
> On Monday, March 26, 2018 at 10:49:45 AM UTC-4, m.douglas.williams wrote:
>>
>> And, I made a gif of the animated 3D plot.
>>
>>
--
You received t
what. the. heck.
is going on here?
On Monday, March 26, 2018 at 10:49:45 AM UTC-4, m.douglas.williams wrote:
>
> And, I made a gif of the animated 3D plot.
>
>
--
You received this message because you are subscribed to the Google Groups
"Racket Users" group.
To unsubscribe from this group
, March 23, 2018 at 5:17:03 PM UTC-4, Sanjeev Sharma wrote:
>
> I've done no math in 20 years - used to do tons (with the not so great
> graphics of the time) saw this intriguing plot & banged my head against a
> wall for a couple of hours.
>
> Then I just set
, Sanjeev Sharma wrote:
>
> I've done no math in 20 years - used to do tons (with the not so great
> graphics of the time) saw this intriguing plot & banged my head against a
> wall for a couple of hours.
>
> Then I just settled down & read the manual systematically,
I've done no math in 20 years - used to do tons (with the not so great
graphics of the time) saw this intriguing plot & banged my head against a
wall for a couple of hours.
Then I just settled down & read the manual systematically, pretending it
may have some info, followed the examples and vo
Is there a self-contained nightly build without the installer which sets
defaults and icons and shortcuts?
I'd like to test out the nightly builds but they occasionally step over the
stable version.
--
You received this message because you are subscribed to the Google Groups
"Racket Users"
sigh ... meant to get this part into the reply (from the same paper)
The original version of the loop macro consists of 1840 lines of
code, not counting comments and empty lines. The implementation
of the loop keyword macros takes 387 lines; the rest includes the
implementation of its various int
y-one CPS macros [Hilsdale and Friedman 2000] for loop
> clauses such as for and do.
>
> CPS macros pose challenges for generating good erro
So it looks like Ryan Culpepper has a racket version? I didn't see anything
obvious on his github account.
On Friday, July 21, 2017 at 6:32
anyone have a working implemntation?
Just a little while ago I read something to the effect that Shivers thought
error handling would be a huge mess but there's a Racket implementation that
does a lot of error handling cheaply.
--
You received this message because you are subscribed to the G
addenda are becoming a habit with me ... a vague memory stirs.
Was there an article discouraging the use of these bindings and giving good
reasons for doing so a long time ago?
--
You received this message because you are subscribed to the Google Groups
"Racket Users" group.
To unsubscribe fr
The issue is with marking a region at s-expr boundary (start or end)
I start the marking (C-space) and move forward (C-f or right arrow) and the
region is marked as I expect, whether I cross an s-expr boundary or not.
and some results I didn't expect
I start the marking (C-space) and move forwa
eading with a more powerful binding form, though if you
> can come up with a syntax that accomplishes what you’re getting at, I’d
> certainly at least be interested by it.
>
> > On Jun 25, 2017, at 09:44, Sanjeev Sharma wrote:
> >
> > is there a way to do a calculation in
The simplest solution occurred to me after a few minutes - a separate function
that ignores the first value (or the last with ~>> )
But I'm still wondering if there's a provision for this in the macro.
--
You received this message because you are subscribed to the Google Groups
"Racket Users
is there a way to do a calculation in the middle of the chain that takes no
arguments? In other words, exempt some operations in the chain from taking any
arguments.
Suppose one's doing a calculation of interest earned on an investment and one
is threading a running balance through the chain,
'() for the parameter
For the usual (no ) function call It's not an issue for the standard
car/cdr idiom of walking down recursive structures.
On Wednesday, September 7, 2016 at 9:28:23 AM UTC-4, Jon Zeppieri wrote:
> On Wed, Sep 7, 2016 at 8:33 AM, Sanjeev Sharma wrote:
> Thank
Thanks for joining in.
The amended question had nothing to do with the earlier example
I'm wondering if there's a quick, standard (and easily understood) idiom
(without an internal helper function) to recur on the variable argument list y
The flatten's not ideal - I may want to retain some sub
.
On Tuesday, September 6, 2016 at 7:39:59 AM UTC-4, gneuner2 wrote:
> On Sun, 4 Sep 2016 10:36:21 -0700 (PDT), Sanjeev Sharma wrote:
>
> >two "x" 's also work
> >
> >(define list (lambda x x))
>
> (lambda x x x) works because the evaluation of the middle
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 receiv
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 racket-users+u
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, vis
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)
if only grammar could does what I need dang
>
> let-values is does what I need
>
>
--
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
very cool
let-values is does what I need
On Thursday, August 18, 2016 at 1:50:18 PM UTC-4, Jens Axel Søgaard wrote:
> No, (list (values 1 2 3)) is not supposed to work.
> Multiple values can be cumbersome to work with.
> In this case you want:
>
>
> (call-with-values (λ () (values 1 2 3))
I stumbled on this trying to do this
(list(quotient/remainder(*(inc 2)2)3))
if values is not supposed to work here how does one car/cdr through values
generated this way?
On Thursday, August 18, 2016 at 1:36:57 PM UTC-4, Sanjeev Sharma wrote:
> (list(values 1 2 3))
> result arity mi
(list(values 1 2 3))
result arity mismatch;
expected number of values not received
expected: 1
received: 3
values...:
I've been under the impression this should be identical to
(list 1 2 3)
--
You received this message because you are subscribed to the Google Groups
"Racket Users" group
thanks folks - marked completed but please share more if there are more
I was going to use hilite.me but I prefer having something resembling the
racket documents
--
You received this message because you are subscribed to the Google Groups
"Racket Users" group.
To unsubscribe from this group
is there a quick & dirty way to use scribble or the drracket GUI to generate
html for random code snippets?
--
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 rack
how can I get lists of identifiers im/exported when one uses
all-defined-out
all-from-out
I can't yet make sense of regprov.rkt
--
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,
thanks
same versions - I was trying to see the effects of different gcc optimization
flags, especially with Pict3D & some math.
On Saturday, August 1, 2015 at 10:35:55 PM UTC-4, Matthew Flatt wrote:
> Are you seeing conflicts with different installations that have the
> same version number? O
I am getting conflicts between the global install and in-place installs,
especially in document searches not working.
I'm guessing the issue is with user preferences.
Is there a way to do the in-place install such that everything gets put in the
in-place install's tree?
--
You received this
windows 7; it's most obvious in
"preferences -> warnings"
also "choose language -> details"
I can ivoke and reverse it from this screen:
Control Panel\Appearance and Personalization\Display
-> make text and other items larger or smaller
-> medium
--
You received this message because y
several blind spots, the last being the sxpath context as the argument that
(sxml:... [])
gets applied to
On Tue, Mar 3, 2015 at 12:49 PM, Sanjeev K Sharma wrote:
> dang ... thanks so much
>
> I don't know how much time you saved me, this was the tack I was on
>
>
> #lang racket (require sxml);(
it's too early in the morning; I included sxpath expressions from a
different example than the txpath expression
the examples do show the ways I've been trying to do that transform.
Racket Users list:
http://lists.racket-lang.org/users
I'm somehow stuck on how to translate txpath syntax to sxpath syntax
#lang racket (require sxml)(require sxml/html)
(define doc(html->xexp"
50 matches
Mail list logo