q9929t has quit [Read error: Connection reset by peer]
hjek has joined #racket
acarrico has quit [Ping timeout: 240 seconds]
DGASAU has joined #racket
endformationage has joined #racket
hjek has quit [Quit: hjek]
zincy has joined #racket
hjek has joined #racket
notzmv has joined #racket
lavaflow_ has quit [Read error: Connection reset by peer]
dustyweb has quit [Ping timeout: 240 seconds]
lavaflow_ has joined #racket
acarrico has joined #racket
Fernando-Basso has joined #racket
acarrico has quit [Ping timeout: 250 seconds]
lavaflow_ has quit [Read error: Connection reset by peer]
lavaflow_ has joined #racket
selimcan has joined #racket
lavaflow_ has quit [Read error: No route to host]
lavaflow_ has joined #racket
endformationage has quit [Ping timeout: 255 seconds]
hjek has quit [Remote host closed the connection]
hjek has joined #racket
Arcaelyx has joined #racket
dustyweb has joined #racket
cantstanya has quit [Remote host closed the connection]
cantstanya has joined #racket
Fare has joined #racket
ubLIX has joined #racket
hjek has quit [Read error: Connection reset by peer]
acarrico has joined #racket
groovy2shoes has quit [Quit: moritura te salutat]
selimcan has quit [Remote host closed the connection]
hjek has joined #racket
amz3 has quit [Ping timeout: 240 seconds]
Fare has quit [Ping timeout: 255 seconds]
endformationage has joined #racket
selimcan has joined #racket
selimcan has quit [Remote host closed the connection]
wingo has quit [Ping timeout: 240 seconds]
cemerick has quit [Ping timeout: 252 seconds]
cemerick has joined #racket
wingo has joined #racket
peddie has quit [Ping timeout: 252 seconds]
amz3 has joined #racket
peddie has joined #racket
tfb has quit [Ping timeout: 252 seconds]
tfb has joined #racket
gonz_ has quit [Ping timeout: 252 seconds]
gonz_ has joined #racket
JStoker has quit [Ping timeout: 252 seconds]
JStoker has joined #racket
ubLIX has quit [Quit: ubLIX]
hjek has quit [Ping timeout: 255 seconds]
dmiles has quit [Ping timeout: 246 seconds]
Fare has joined #racket
logicmoo has joined #racket
ubLIX has joined #racket
tsizz has joined #racket
<tsizz>
can i call a function while do arithmetic like in other languages like (+ 1 (getX x))
Fare has quit [Ping timeout: 245 seconds]
<ZombieChicken>
yeah, that's fine
<tsizz>
ZombieChicken: i am very confused lol i am coding a simple assignment for hw and its our first time with racket. no idea how to keep adding values to a number without using set
<tsizz>
if you could guide me a little.
<ZombieChicken>
if it's homework, shouldn't your instructor have explained that?
<tsizz>
ZombieChicken: yeah... i had some personal issues and missed pass 2 weeks :\
<ZombieChicken>
Racket (and most Lisp) have first order functions. You can call them in place of an arguement for another function without having to use an intermediary variable
<tsizz>
ZombieChicken: is that unusual for programming languages?
<tsizz>
i code a lot in JavaScript so im used to this
<ZombieChicken>
for example, (+ 1 (* 2 2)) will add 1 to the product of 2 squared
<tsizz>
ZombieChicken: mhm ty
<ZombieChicken>
It doesn'te xist in C, for one
<tsizz>
lets say i want to make a string char counter
<tsizz>
(for ([i "hi"])
<tsizz>
but then i want to do something like count += 1
<tsizz>
but not sure how to create a variable then update its value
<tsizz>
without using set
<ZombieChicken>
I'm still learning racket myself, so I havn't messed with that kind of stuff too much. I think what I'd do is just try and write a recursive function to go through the string and count the instances of a character
<tsizz>
ZombieChicken: ah recursion good idea ill try it out thanks
<tsizz>
ZombieChicken: do you know how to call function from other file?
<tsizz>
i have the provide() and require() parts
<tsizz>
do i just call funciton normall in other file?
<ZombieChicken>
yeah
<tsizz>
ZombieChicken: how do i return lol
<tsizz>
or do you not return in functions
<ZombieChicken>
try testing things out in the REPL
<tsizz>
ZombieChicken: hm so i tried to define counter in for loop but then i cant access it outside
<tsizz>
which ones the repl
<ZombieChicken>
If you are going to pickup a Lisp (or learn about it in school), you should proabably look at the Racket Guide and get an idea on how Lisp development is done.
<tsizz>
ZombieChicken: im confused what ' does lol
<tsizz>
but yeah i understand. im jsut freakin out a bit bc my hw due tomorrow night
<ZombieChicken>
"'" is shorthand for (quote ...)
zincy has quit [Remote host closed the connection]