> Just one more question, for clarification. Are you using the `lambda` form in
> BSL? I ask because several examples in this thread have been using `lambda`,
> but I
> don't think that lambda expressions are actually valid in either of the
> beginning student languages, though I would expect y
Just one more question, for clarification. Are you using the `lambda` form in
BSL? I ask because several examples in this thread have been using `lambda`,
but I don't think that lambda expressions are actually valid in either of the
beginning student languages, though I would expect you to recei
When I run this program:
(define atom? (lambda (arg1)
(and (not (pair? arg1))
(not (null? arg1)
(define and 'dummy)
It highlights the `and` in the `(define and ‘dummy)`, and gives me this error
message:
define: expected a variable name, or a function name
Daniel
Thanks for your interest.
Any reference to any definition (supposed) from the I-pane throws an
"undefined" error; there are no apparent errors when click Run
immediately after I load the definition file. I'm not going to worry
about it too much at this point. It's probably a simple noobie
Aha! Eureka.
Thanks
I'm just starting this odyssey. The main goal is to wrap my head around
OOP and recursive concepts and hopefully I can avoid any more language
issues for a while and get through TLS. Although it doesn't hurt _that_
much to get reacquainted w/how sneaky syntax and programming
> It apparently doesn't run the defs _at all_. The interactive pane will
> not recognize _any_ of the variables or functions that appear to be
> defined in the definition pane and should form the environment (or scope
> or whatever the correct word) after I click on the "Run" button. And I
> don't
> That's how I found the problem, although I had to chase it down off the
> bottom of the pane.
If the arrow goes off-screen, you can right-click the identifier and select
“Jump to Binding Occurrence” to automatically scroll to where the identifier is
bound. You can also select “Tack/Untack Arro
Alexander
> arrows
That's how I found the problem, although I had to chase it down off the
bottom of the pane. Somebody did a neat good thing there.
> BSL+list
It apparently doesn't run the defs _at all_. The interactive pane will
not recognize _any_ of the variables or functions that appear to
On Mar 3, 2015, at 6:34 PM, Rufus wrote:
> Matthias
>
> My goodness. There seems to be some strangeness here.
>
> 1) When using "#lang racket" and running the defs file,
> - Atom? is defined regardless of whether the "AND clause
> get parens ie. "Atom?" entered on the interactive pane
>
You can use "windows-1252" as an encoding name with, for example,
`reencode-input-port`:
> (read-line (reencode-input-port (open-input-bytes #"\xA3")
"windows-1252"))
"£"
For handling e-mail, see also `generalize-encoding` from `net/unihead`.
At Tue, 3 Mar 2
I'm trying to process a bunch of e-mail, and I've discovered that lots of
it is encoded using the "windows-1252" charset. It looks pretty
straightforward to map this to unicode, but I thought I'd check: has anyone
written this code already?
John Clements
Racket Users list:
Matthias
My goodness. There seems to be some strangeness here.
1) When using "#lang racket" and running the defs file,
- Atom? is defined regardless of whether the "AND clause
get parens ie. "Atom?" entered on the interactive pane
(then hit Enter) tells us it's a proc regardless th
Use BSL with List Abbreviation.
On Mar 3, 2015, at 3:50 PM, Rufus wrote:
> Alexander
>
> Well, in fact, I thought it worked for me, too. And then it stopped
> working; DrR threw an "application: not a procedure;" error saying it
> was given a null list instead of an application. Removing th
On Mar 3, 2015, at 3:01 PM, Rufus wrote:
> Although I'm not completely sure of the ultimate value in this form, nor
> possible "prior art" here or elsewhere, I'll post the following
> definitions here for possible use or improvement by others. They allow
> me to comfirm and play w/the examples a
Well that’s weird. And after it stopped working with the parens, then it
worked without them?
It doesn’t do that for me:
(define atom? (lambda (arg1)
and (not (pair? arg1))
(not (null? arg1
;. and: bad syntax in: and
Is there a specific way to reproduce it
Alexander
Well, in fact, I thought it worked for me, too. And then it stopped
working; DrR threw an "application: not a procedure;" error saying it
was given a null list instead of an application. Removing the parens got
it working again.
Now that just doesn't make any sense at all but that's wh
This works for me:
(define atom? (lambda (arg1)
(and (not (pair? arg1))
(not (null? arg1)
On Mar 3, 2015, at 3:16 PM, Rufus wrote:
> On page 10 of TLS there is a note defining the "atom?" function for the
> reader to use w/Lisp or Scheme. The definition
On page 10 of TLS there is a note defining the "atom?" function for the
reader to use w/Lisp or Scheme. The definition for Scheme (which is the
most likely one to use for DrR) does not work. To fix one must remove
the parens that open at the "and". Apparently the DrR
compiler/interpreter sees them
Although I'm not completely sure of the ultimate value in this form, nor
possible "prior art" here or elsewhere, I'll post the following
definitions here for possible use or improvement by others. They allow
me to comfirm and play w/the examples and exercises in TLS, first
chapter. If it proves use
Its fixed - nginx cached the racket web server response :P
Thanks for pointing that out.
Best,
Floyd
> On Mar 3, 2015, at 12:17 PM, Stephen Chang wrote:
>
>
> This is really neat!
>
>
> I tried the guessing game and it seems to have a bug though?
>
>
>> (guess)
>>
>>
>> 50
>
This is really neat!
I tried the guessing game and it seems to have a bug though?
> (guess)
50
> (smaller)
25
> (bigger)
37
> (bigger)
37
On Tue, Mar 3, 2015 at 10:22 AM, Matthias Felleisen
wrote:
>
> Thanks. This is really neat. When (if really) I ever find time, I would love
> to help with pu
On Tue, Mar 03, 2015 at 09:14:42AM -0800, John Clements wrote:
> Also, why do I have to use 'ntype??'
> instead of sxpath? Not sure. I think this library might gain a great deal
> from being a *teensy* bit less higher-order.
>
I started using ntype there after realizing sxpath can't make predic
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);(
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);(require sxml/html)
(define doc(ssax:xml->sxml(open-input-string"
www content
Looks great, Floyd. Thanks.
Steve Graham
From: Floyd Arguello
To: racket users list
Sent: Monday, March 2, 2015 7:10 PM
Subject: [racket] updated trycode.io
trycode.io has been updated with the Guess My Number game from Realm of
Racket. Please take a look and tell me your though
I think sxpath is not as broken as you think. It certainly *is* desperately
short of examples, and I'll add this one when I'm done.
I wouldn't call this complete success, but after much head-scratching and
doc-reading, I got this to produce the expected result:
(((sxml:preceding (ntype?? 'www)) d
On Mar 2, 2015, at 1:45 PM, Matthew Butterick wrote:
> I enjoyed reading Realm of Racket (& not embarrassed to say I even learned a
> few things, like #; for commenting an S-expression). Nice job, all those
> involved.
>
> I was interested in the note on p.9 that Racket was originally a proj
I have not been able to get those axes working either. I've looked
briefly at the implementation of `sxml:preceding`, and it's unclear to
me how it could even work.
Since `txpath` appears to work, I'd stick with that. I'm not sure why
it's deprecated in favor of `sxpath`. Since, AFAICT, we're just
Thanks. This is really neat. When (if really) I ever find time, I would love to
help with putting more of Realm out there like this. -- Matthias
On Mar 2, 2015, at 10:10 PM, Floyd Arguello wrote:
> trycode.io has been updated with the Guess My Number game from Realm of
> Racket. Please take
The Little Lisper/Schemer uses ' (quote) for lists and that is not available in
plain BSL. You need BSL-with-list-abbreviations to follow along TLS/TLL.
On Mar 2, 2015, at 9:21 PM, Rufus wrote:
> Matthias
>
>> best advice
>
> Yes. Said as much to Jordan but my email client is schizo about
On 03/03/2015 01:59 AM, Alexander D. Knauth wrote:
Could submodules be causing it?
try.rkt:
#lang typed/racket/base
(provide x)
(define x : Integer 1)
(module* test racket/base
(require (submod ".."))
x)
Gives this error:
. . Racket v6.1.1.8/collects/racket/private/reqprov.rkt:79:13:
syn
test:
I see only replies to my posts, not my posts
the listaerv sends notices that it got my submission
I've checked my settings (also changed the settings to get the bounces)
Racket Users list:
http://lists.racket-lang.org/users
On Mon, Mar 02, 2015 at 09:52:53AM -0500, Vincent St-Amour wrote:
> I recommend the short tutorial near the top of this document:
>
> http://pkg-build.racket-lang.org/doc/sxml/sxpath.html
>
Thanks for the suggested solution;
that was exactly the document I referred to
I have not been able
33 matches
Mail list logo