acarrico has joined #racket
odanoburu has joined #racket
orivej has quit [Ping timeout: 245 seconds]
ubLIX has quit [Quit: ubLIX]
ubLIX has joined #racket
xuanrui has joined #racket
slemonide has joined #racket
slemonide has quit [Client Quit]
zachk has quit [Quit: Leaving]
ym has joined #racket
ym has left #racket [#racket]
keep_learning has joined #racket
dbmikus__ has joined #racket
dbmikus__ has quit [Client Quit]
dbmikus has joined #racket
meepdeew has quit [Remote host closed the connection]
widp has quit [Ping timeout: 240 seconds]
ubLIX has quit [Quit: ubLIX]
newbie_ has joined #racket
<newbie_> Hi all, i am learning Racket , and needed help with this https://paste.pound-python.org/show/McExo0Nit441PQLJQK75/ if someone can guide me with it
efm has joined #racket
<newbie_> can someone help me ?
<nisstyre> newbie_: you're going to have to ask a more specific question. We aren't going to do your homework for you.
<newbie_> (filter-prefix (cons “apple” (cons “b” (cons “banana” (cons “BAnana” (cons “bAnAna” (cons “BaCkWaRdS” (cons “definite” empty))))))) “bA”) => (cons “apple” (cons “b” (cons “definite” empty)))
<newbie_> nisstyre, i am using filter function but not sure the next steps for case insensitive
<nisstyre> newbie_: why don't you write a function that takes a string and turns it all into lowercase?
<nisstyre> that would be a good starting point
<nisstyre> then figure out how you can use that to apply it to a list...it should be obvious how
<nisstyre> then you can figure out how to write a function that takes a string and a prefix, and checks if it has the prefix
<nisstyre> don't try to do it all at once
<nisstyre> that's my advice
selimcan has quit [Ping timeout: 240 seconds]
<nisstyre> here's a hint
<nisstyre> > (string-downcase "FoObAr")
<nisstyre> rudybot: (string-downcase "FoObAr")
<rudybot> nisstyre: error: with-limit: out of time
<nisstyre> ok IDK how to use rudybot apparently
evdubs_ has quit [Quit: Leaving]
evdubs has joined #racket
pierpa has quit [Quit: Page closed]
dddddd has quit [Remote host closed the connection]
pierpal has joined #racket
pierpal has quit [Read error: Connection reset by peer]
odanoburu has quit [Quit: Connection closed for inactivity]
Sgeo_ has joined #racket
Sgeo has quit [Ping timeout: 246 seconds]
dbmikus has quit [Ping timeout: 252 seconds]
pierpal has joined #racket
pierpal has quit [Ping timeout: 264 seconds]
pierpal has joined #racket
pierpal has quit [Read error: Connection reset by peer]
pierpal has joined #racket
lockywolf has joined #racket
pierpal has quit [Ping timeout: 240 seconds]
lockywolf_ has joined #racket
pierpal has joined #racket
kPb_in has joined #racket
lockywolf has quit [Ping timeout: 252 seconds]
libertyprime has joined #racket
libertyprime has quit [Quit: leaving]
lockywolf_ has quit [Ping timeout: 252 seconds]
kPb_in has quit [Quit: kPb_in]
georges-duperon has joined #racket
kPb_in has joined #racket
kPb_in has quit [Client Quit]
pera has quit [Ping timeout: 264 seconds]
kPb_in has joined #racket
georges-duperon has quit [Remote host closed the connection]
newbie_ has quit [Quit: Page closed]
kPb_in has quit [Quit: kPb_in]
jao has quit [Ping timeout: 240 seconds]
lavaflow has joined #racket
pie_ has quit [Ping timeout: 264 seconds]
dan_f has quit [Quit: dan_f]
pierpal has quit [Read error: Connection reset by peer]
pie_ has joined #racket
pie_ has quit [Remote host closed the connection]
g00s has joined #racket
qeval has joined #racket
<tilpner> r> (string-downcase "FoObAr")
<qeval> > "foobar"
mzan has joined #racket
bor0 has joined #racket
pie_ has joined #racket
g00s has quit [Quit: Textual IRC Client: www.textualapp.com]
pie_ has quit [Remote host closed the connection]
pie_ has joined #racket
vraid has joined #racket
dustyweb has quit [Ping timeout: 264 seconds]
bor0 has quit [Quit: This computer has gone to sleep]
vraid has quit [Ping timeout: 256 seconds]
pie_ has quit [Read error: Connection reset by peer]
pie_ has joined #racket
pie_ has quit [Read error: Connection reset by peer]
pie_ has joined #racket
pie_ has quit [Read error: Connection reset by peer]
vraid has joined #racket
orivej has joined #racket
pierpal has joined #racket
YuGiOhJCJ has joined #racket
ZombieChicken has joined #racket
pierpal has quit [Ping timeout: 244 seconds]
seaword has joined #racket
<seaword> Hi! string-ith is available in DrRacket but not in the racket repl. I am running version 7.0 of both. Other string functions, such as string-appened work in the repl.
<seaword> Does anyone know why I can't use string-ith in the racket repl?
<seaword> I get "; string-ith: undefined;" when trying to use it.
<bremner> seaword: check your drracket setup. It's maybe using one of the teaching languages
<bremner> Control-L to bring up the menu
selimcan has joined #racket
<seaword> bremner: thanks, yeh it's using BSL. I thought I had this enabled in the repl but I probably don't. I didn't realise string-ith was in a different language than something like string-length as they appear together in the docs.
pie_ has joined #racket
jao has joined #racket
pie_ has quit [Remote host closed the connection]
pie_ has joined #racket
YuGiOhJCJ has quit [Quit: YuGiOhJCJ]
dustyweb has joined #racket
selimcan has quit [Ping timeout: 260 seconds]
seaword has quit [Quit: seaword]
selimcan has joined #racket
iyzsong has joined #racket
pie_ has quit [Read error: Connection reset by peer]
pie_ has joined #racket
pie_ has quit [Ping timeout: 252 seconds]
pie_ has joined #racket
acarrico has quit [Ping timeout: 244 seconds]
orivej has quit [Ping timeout: 272 seconds]
acarrico has joined #racket
iyzsong has quit [Ping timeout: 264 seconds]
iyzsong has joined #racket
efm has quit [Quit: Konversation terminated!]
dbmikus has joined #racket
pierpal has joined #racket
iyzsong has quit [Ping timeout: 240 seconds]
<rain2> hello
<rain2> ive been looking at this implementation of dynamic wind using yield
<rain2> (dyn-wind-yield before-thunk thunk after-thunk)
<rain2> yield is defined using shift
<rain2> I was wondering what would happen if you use multiple prompts - would this version of dynamic-wind fail in that case?
<rain2> my guess is that the dynamic wind prompt needs to "contain" all other prompts. Is that true?
sz0 has joined #racket
Hazematman has joined #racket
ZombieChicken has quit [Quit: Have a nice day]
pierpal has quit [Ping timeout: 245 seconds]
eddof13 has joined #racket
pie_ has quit [Ping timeout: 264 seconds]
sleepnap has quit [Ping timeout: 272 seconds]
pera has joined #racket
xuanrui has quit [Remote host closed the connection]
pie_ has joined #racket
orivej has joined #racket
pierpal has joined #racket
mzan has left #racket [#racket]
orivej has quit [Ping timeout: 252 seconds]
mzan has joined #racket
pierpal has quit [Quit: Poof]
pierpal has joined #racket
pierpal has quit [Read error: Connection reset by peer]
pierpal has joined #racket
selimcan has quit [Ping timeout: 240 seconds]
xuanrui has joined #racket
acarrico has quit [Read error: Connection reset by peer]
acarrico has joined #racket
YuGiOhJCJ has joined #racket
sauvin has quit [Ping timeout: 264 seconds]
<rain2> it seems like dynamic-wind has to be special
<rain2> you could maybe do somehting like keep a list of all prompts that have been created, and built it using thaht (inefficient though)
<rain2> I wonder if the operators like reset-at/shift-at could take sets of prompts instead of a single prompt
odanoburu has joined #racket
orivej has joined #racket
dan_f has joined #racket
selimcan has joined #racket
YuGiOhJCJ has quit [Quit: YuGiOhJCJ]
<rain2> Are rackets language features implement using continuations or not?
<rain2> like generators, exceptions and such?
<rain2> or are they just coded to cooperate with continuations
<samth> rain2: generators and exceptions both use continuations in the implementation
<rain2> cool! thank you
<samth> the implemenation of generators is in racket/generator.rkt
<samth> exceptions-handlers are mostly in racket/private/more-scheme.rkt
lavaflow_ has joined #racket
dbmikus_ has joined #racket
nckx- has joined #racket
dan_f_ has joined #racket
jao has quit [Disconnected by services]
tilpner_ has joined #racket
jao has joined #racket
iclon_ has joined #racket
eagleflo_ has joined #racket
dan_f has quit [*.net *.split]
acarrico has quit [*.net *.split]
pierpal has quit [*.net *.split]
dbmikus has quit [*.net *.split]
lavaflow has quit [*.net *.split]
nckx has quit [*.net *.split]
Lowl3v3l has quit [*.net *.split]
tilpner has quit [*.net *.split]
iclon has quit [*.net *.split]
Hyperion2010 has quit [*.net *.split]
Bunogi has quit [*.net *.split]
eagleflo has quit [*.net *.split]
mfiano has quit [*.net *.split]
gabot has quit [*.net *.split]
tilpner_ is now known as tilpner
dan_f_ is now known as dan_f
mfiano has joined #racket
acarrico has joined #racket
Lowl3v3l has joined #racket
Bunogi has joined #racket
<dustyweb> hm. When using the scribble `examples' form, I expected output to look like it does at the REPL, using the write-proc generic (???)
<dustyweb> instead it looks like it prints out closer to what Racket's serialization shows
gabot has joined #racket
xuanrui has quit [Ping timeout: 245 seconds]
<samth> dustyweb: I'm pretty sure it's calling `print` there too
<dustyweb> oh huh, the teachpack/2htdp/scribblinbs/img-eval does what I expect
pierpal has joined #racket
<dustyweb> samth: not sure what you mean, but I guess using make-base-eval makes things less wrong :)
lavaflow_ is now known as lavaflow
acarrico has quit [Ping timeout: 245 seconds]
eddof13 has quit [Quit: eddof13]
dan_f_ has joined #racket
<samth> dustyweb: I mean that `examples` calls `print` on your data and does not use `serialize`, I'm pretty sure
<dustyweb> samth: hm, it printed a really long serialize'y looking thing when I initially used (make-evaluator 'racket) rather than using make-base-eval
<dustyweb> but I won't claim to know what I'm doing :)
<samth> dustyweb: what were you printing?
<dustyweb> samth: an opaque struct
<samth> and it printed how?
<dustyweb> with the following evaluator:
<dustyweb> @(define my-evaluator
<dustyweb> [sandbox-memory-limit 50])
<dustyweb> [sandbox-error-output 'string]
<dustyweb> (parameterize ([sandbox-output 'string]
<dustyweb> (make-evaluator 'racket)))
<dustyweb>
<dustyweb> like:
<dustyweb> #0=(local-address (promise #<procedure:...s/goblins/actors.rkt:299:23>) #1=(object:hive% (hasheq#0# #<procedure:temp1> (local-address [...]
<dustyweb> and so on
<dustyweb> with (make-base-eval #:lang 'racket)
<dustyweb> #<local-address xb6MafGGqL8uqLoZwuO55P2WLKnG3Nh7I0R8tV5FIHPPiANtaghQtDtw+2lo8Xw5tb/DWxqPoB0=>
<dustyweb> which was what I expected
<samth> dustyweb: that's the result of printing the contents of those structs
<samth> the #0 etc are about structure sharing
<dustyweb> actors.rkt/test> (print alice)
<dustyweb> #<local-address ziY2mn+rHV3HnwfScbgUZ8QwfnvigNzZ2krbzyOu26dCNgMsOI3Y6VzIQpYWN3zPd2mq9kjm/Vw=>
Welkin has joined #racket
acarrico has joined #racket
xuanrui has joined #racket
eddof13 has joined #racket
dan_f has quit [Quit: dan_f]
dan_f_ is now known as dan_f
acarrico has quit [Ping timeout: 260 seconds]
selimcan has quit [Ping timeout: 272 seconds]
dan_f_ has joined #racket
dan_f_ has quit [Client Quit]
selimcan has joined #racket
ubLIX has joined #racket
pera has quit [Ping timeout: 245 seconds]
mzan has quit [Ping timeout: 244 seconds]
pera has joined #racket
eddof13 has quit [Quit: eddof13]
eddof13 has joined #racket
massimo_zaniboni has joined #racket
jao has quit [Ping timeout: 240 seconds]
jao has joined #racket
meepdeew has joined #racket
massimo_zaniboni has left #racket [#racket]
pierpal has quit [Quit: Poof]
pierpal has joined #racket
dbmikus_ has quit [Ping timeout: 240 seconds]
xuanrui has quit [Ping timeout: 276 seconds]
Welkin has left #racket [#racket]
jao has quit [Ping timeout: 246 seconds]
jao has joined #racket
eddof13 has quit [Quit: eddof13]
selimcan has quit [Ping timeout: 240 seconds]
selimcan has joined #racket
dan_f has quit [Quit: dan_f]
dan_f has joined #racket
g00s has joined #racket