brandelune has quit [Read error: Connection reset by peer]
<geo80>
morning! been a while since last time... btw tankf33der about your splitme for rosettacode? it was considered as incorrect? so I tried just for fun and here is my code:
<geo80>
tankf33der sorry but did not understand very well to be honest hehe
<geo80>
but I will try understand it more because I believe your version is the lisp way, correct?
beneroth has joined #picolisp
Nistur has joined #picolisp
<tankf33der>
geo80: thats why you decided create version you understands.
<tankf33der>
im very recomended spent a time on mine.
<beneroth>
hi tankf33der, geo80
<geo80>
tankf33der yes hehe, ok i will read your code and try to understand it more, i did have some temporary understanding but i will try to understand better to be a good picolisper
<geo80>
hi beneroth!
Nistur has quit [Remote host closed the connection]
mtsd has joined #picolisp
<Regenaxer>
ret
<Regenaxer>
geo80, yes now it looks good
<Regenaxer>
(formatting, I have not studied the code yet ;)
<Regenaxer>
Hi beneroth!
<mtsd>
Hello everyone!
<Regenaxer>
Hi mtsd!
<mtsd>
Hi Regenaxer!
<Regenaxer>
Hmm, I do not understand why you need 3 variables
<Regenaxer>
Wouldn't a single one (e.g. 'Last') suffice?
<Regenaxer>
Also, start with NIL instead of 255. 255 is a possibly legal char
Nistur has joined #picolisp
<geo80>
Regenaxer ah the reason for 255 is I need to bitwise AND it with the first character
<geo80>
and it will result with the same ascii value for the first character
<geo80>
so i can maintain the same logic of comparing?
<Regenaxer>
hmm, I do not really understand why you need and. But I also don't remember the task well
<beneroth>
hello mtsd :)
<beneroth>
Hi Regenaxer
<mtsd>
Hello beneroth!
<Regenaxer>
Doesn't it just need to detect if the char changes?
<geo80>
ah yes, it detects when the char changes
<geo80>
and i was just using the AND of the ascii value to check the changes
<geo80>
Hi mtsd!
<Regenaxer>
I have not tested, but won't this work? http://ix.io/28tp
<Regenaxer>
hmm, needs check for first
<geo80>
pil paste.l +
<geo80>
: (splitme "gHHH5YY++///\\")
<geo80>
-> "gHHH5YY++///\\"
<geo80>
:
<Regenaxer>
(if (or (not Last) (= C Last))
<geo80>
still the same
<Regenaxer>
I don't know what the correct result is. Anyway ...