beneroth changed the topic of #picolisp to: PicoLisp language | The scalpel of software development | Channel Log: https://libera.irclog.whitequark.org/picolisp | Check www.picolisp.com for more information
Nistur has quit [Ping timeout: 272 seconds]
alexshe14 has joined #picolisp
alexshendi has quit [Read error: Connection reset by peer]
Nistur has joined #picolisp
Nistur has quit [Ping timeout: 272 seconds]
Nistur has joined #picolisp
Regenaxer has joined #picolisp
alexshe14 has quit [Quit: -a- Connection Timed Out]
alexshendi has joined #picolisp
alexshendi has quit [Quit: -a- Connection Timed Out]
alexshendi has joined #picolisp
alexshendi has quit [Quit: -a- Connection Timed Out]
alexshendi has joined #picolisp
alexshendi has quit [Read error: Connection reset by peer]
alexshendi has joined #picolisp
calle has joined #picolisp
alexshendi has quit [Quit: -a- Connection Timed Out]
alexshendi has joined #picolisp
chexum has quit [Remote host closed the connection]
chexum has joined #picolisp
alexshe35 has joined #picolisp
alexshendi has quit [Ping timeout: 272 seconds]
Hunar has joined #picolisp
<Hunar> Hello, I have a weird problem that I cant reproduce elsewhere.. I have a function drawLine which takes 4 parameters, now this (apply drawLine '(10 10 50 60)) and this  (apply drawLine (conc '(10 10 50 60))) work but this (apply drawLine (conc '(10 10) '(50 60))) causes stack overflow with this error message (apply drawLine (conc '(10 10 . (50 60
<Hunar> .)) '(50 60 .))) which I don't understand, why would (conc '(10 10 50 60)) be different than (conc '(10 10) '(50 60)) aren't they the exact same thing?
<abu[m]> Keep in mind that 'conc' is destructive
<abu[m]> In general, unless you want to modify structures, use 'append'
<abu[m]> (btw, lists starting with a number don't need to be quoted)
<Hunar> Aha, so that was my problem .. I keep forgetting those :(
<abu[m]> Yeah ☺ 'conc' is powerful but dangerous like all destructive functions
<Hunar> Right, I forgot that too
<Hunar> I forgot another thing, apply passes the arguments that are after the list to the beginning, which function passes it to the back?
<Hunar> (apply fun '(a b c) thing) I want it to become (fun a b c thing)
<abu[m]> You mean while calling 'apply'?
<abu[m]> ok, no, there is no direct way
<abu[m]> You must build the list then
<Hunar> Ah, I will just append it to the list then
<abu[m]> (apply fun (append '(a b c) (list thing))
<abu[m]> yeah, not very beautiful
<abu[m]> Do you need 'apply' here?
<Hunar> I plan to restart my raylib port, some functions take position which is a struct, and some functions take individual x y points, I needed to extract the points to pass it
<abu[m]> Makes sense then
<Hunar> Thanks :)
<abu[m]> ☺
Hunar has quit [Ping timeout: 252 seconds]
alexshe35 has quit [Quit: -a- Connection Timed Out]
alexshendi has joined #picolisp
beneroth has quit [Quit: Leaving]
alexshendi has quit [Quit: -a- Connection Timed Out]
alexshendi has joined #picolisp
alexshendi has quit [Quit: -a- Connection Timed Out]
alexshendi has joined #picolisp
alexshendi has quit [Quit: -a- Connection Timed Out]
alexshendi has joined #picolisp
alexshe94 has joined #picolisp
alexshendi has quit [Read error: Connection reset by peer]
alexshendi has joined #picolisp
alexshe94 has quit [Ping timeout: 272 seconds]
calle has quit [Ping timeout: 240 seconds]