tonyg changed the topic of #racket to: The Racket Programming Language -- https://racket-lang.org/ -- https://gather.town/app/wH1EDG3McffLjrs0/racket-users -- http://pasterack.org -- logged at https://libera.irclog.whitequark.org/racket/ -- This is the right place to ask for help with (Dr)Racket. Remember to wait around for an answer!
Oxyd has quit [Ping timeout: 255 seconds]
Oxyd has joined #racket
lucasta has quit [Quit: Leaving]
szkl has joined #racket
bubblegum has quit [Ping timeout: 264 seconds]
bubblegum has joined #racket
bubblegum has quit [Read error: Connection reset by peer]
bubblegum has joined #racket
bubblegum has quit [Ping timeout: 260 seconds]
nm0i has quit [Remote host closed the connection]
nm0i has joined #racket
Tuplanolla has quit [Quit: Leaving.]
szkl has quit [Quit: Connection closed for inactivity]
bubblegum has joined #racket
<polarian> how do you do a for loop where you are building a string by interating through data.
<polarian> basically StringBuilder from Java, but in racket
<polarian> I have tried a let and then a for
<polarian> but strings are static insize
<polarian> and I can't figure out how to string-append the new content
<polarian> and reassign the let'd variable to the new string
<polarian> (and then repeat)
<polarian> any suggestions?
<polarian> I could convert the let variable to a empty list
<polarian> orrrr for/list it and then list->string?
szkl has joined #racket
<polarian> nevermind I can just foldr string-append
corpix has joined #racket
rampart has joined #racket
a51 has quit [Quit: WeeChat 4.2.1]
<shawnw> My soup-lib package has a for/string form that's useful for such things.
<shawnw> https://docs.racket-lang.org/soup-lib/index.html#%28form._%28%28lib._soup-lib%2Ffor..rkt%29._for%2Fstring%29%29
rampart has quit [Client Quit]
<shawnw> ooops, gotta go
shawnw has quit [Quit: Konversation terminated!]
rampart has joined #racket
rampart has quit [Remote host closed the connection]
mdhughes has joined #racket
mdhughes_ has quit [Ping timeout: 268 seconds]
rampart has joined #racket
notzmv has quit [Ping timeout: 255 seconds]
skapata has quit [Read error: Connection reset by peer]
szkl is now known as sz
sz has quit []
Tuplanolla has joined #racket
notzmv has joined #racket
notzmv has quit [Ping timeout: 256 seconds]
<bremner> polarian: for/list followed by a single call (apply string-append ...) was my first thought. I don't know if it's faster than your foldr solution; it might be.
<bremner> polarian: there is also for/fold, which is imho a bit clearer than foldr (unless people are familiar with foldr from other languages)
FreeFull has quit []
FreeFull has joined #racket
shawnw has joined #racket
shawnw has quit [Quit: Konversation terminated!]
skapata has joined #racket
<polarian> double for... hm
skapata has quit [Quit: Bonan tageron kaj ĝis la.]
skapata has joined #racket
shawnw has joined #racket
corpix has quit [Quit: ""]
corpix has joined #racket
corpix has quit [Quit: ""]
corpix has joined #racket
corpix has quit [Quit: ""]
corpix has joined #racket
bubblegum has quit [Ping timeout: 264 seconds]
bubblegum has joined #racket
bubblegum has quit [Read error: Connection reset by peer]
bubblegum has joined #racket
bubblegum has quit [Read error: Connection reset by peer]
bubblegum has joined #racket
Origin has quit [Ping timeout: 260 seconds]
Origin has joined #racket
bubblegum has quit [Ping timeout: 264 seconds]
bubblegum has joined #racket
bubblegum has quit [Read error: Connection reset by peer]
bubblegum has joined #racket
bubblegum has quit [Ping timeout: 246 seconds]
bubblegum has joined #racket
lagash has quit [Ping timeout: 256 seconds]
rampart has quit [Quit: Leaving]
bubblegum has quit [Ping timeout: 272 seconds]
bubblegum has joined #racket
lagash has joined #racket
szkl has joined #racket
lucasta has joined #racket
Tuplanolla has quit [Quit: Leaving.]