freemint has quit [Ping timeout: 250 seconds]
xkapastel has joined #picolisp
xkapastel has quit [Quit: Connection closed for inactivity]
rob_w has joined #picolisp
orivej has joined #picolisp
<
tankf33der>
morning
<
tankf33der>
playing with new put and =:
<
tankf33der>
will you add example to reference ?
<
tankf33der>
Regenaxer: ping ^
<
Regenaxer>
Hi tankf33der! Well, it is not a very big feature (at least I never needed it)
<
Regenaxer>
Also, only pil64
<
tankf33der>
but i even cant repeat.
<
tankf33der>
still trying.
<
Regenaxer>
(setq L '((a . 1) (b . 2) (c . 3)))
<
Regenaxer>
(put L 'b 999)
<
Regenaxer>
(put L 2 888)
<
Regenaxer>
I thought I try to implement it for completeness
<
Regenaxer>
(compatible to 'get')
<
tankf33der>
i see.
<
Regenaxer>
(get L 2)
<
Regenaxer>
(get L 'c)
<
tankf33der>
works. ok.
<
Regenaxer>
Let's omit an example for now, as the feature is not in pil32, mini or ersatz
<
Regenaxer>
Thanks for testing tankf33der!
<
tankf33der>
i see, i missed symbol and list as destination.
<
tankf33der>
i thought list is destination inside symbol.
<
Regenaxer>
Yeah, 'put' and 'get' are confusing
<
Regenaxer>
Very overloaded functions
<
Regenaxer>
All object data are handled by them
ubLIX has joined #picolisp
orivej has quit [Ping timeout: 268 seconds]
orivej has joined #picolisp
ubLIX has quit [Quit: ubLIX]
ubLIX has joined #picolisp
ubLX has joined #picolisp
ubLIX has quit [Ping timeout: 245 seconds]
ubLX has quit [Quit: ubLX]
beneroth has joined #picolisp
xkapastel has joined #picolisp
freemint has joined #picolisp
orivej has quit [Ping timeout: 272 seconds]
orivej has joined #picolisp
rob_w has quit [Remote host closed the connection]
orivej has quit [Ping timeout: 245 seconds]
ubLIX has joined #picolisp
jibanes has quit [Ping timeout: 246 seconds]
jibanes has joined #picolisp
orivej has joined #picolisp
<
tankf33der>
Regenaxer: o/
<
tankf33der>
i did this:
<
tankf33der>
is this ok ?
<
Regenaxer>
The code is good, but I wonder if it fits the task
<
Regenaxer>
They talk about "text"
<
Regenaxer>
So it is perhaps 'read'?
<
Regenaxer>
ie read or parse a text, then check the type
<
tankf33der>
i will reimplement
<
Regenaxer>
Perhaps just use 'any'?
<
Regenaxer>
passing a string
<
Regenaxer>
and then the type checks as you have them
<
tankf33der>
i will do it. i missed the task.
<
Regenaxer>
Looks like the Go solution also does that (?)
freemint has quit [Remote host closed the connection]
freemint has joined #picolisp
<
tankf33der>
i will do like go, detect type in cond and print text of it.
<
tankf33der>
and name it (typeof 123) returns "int"
<
tankf33der>
or "number"
<
tankf33der>
good night.
<
Regenaxer>
Not sure what the task actually wants
<
Regenaxer>
anyway, good night!
<
tankf33der>
see, julia did it via repl as i before:
<
Regenaxer>
Strange task
<
Regenaxer>
Show a function/procedure that processes a block of text by printing it.
<
Regenaxer>
a parameter that "describes" the text. wth
<
Regenaxer>
So does the function take a text or some other parameter?
<
Regenaxer>
Anyway, it is a draft
<
tankf33der>
i will re implement and leave as is.
<
Regenaxer>
Don't want to read the disussio now :)
<
Regenaxer>
ok, good
<
Regenaxer>
Have a nice evening! :)
mtsd has joined #picolisp
xkapastel has quit [Quit: Connection closed for inactivity]
mtsd has quit [Quit: Leaving]
ubLIX has quit [Quit: ubLIX]
orivej has quit [Ping timeout: 245 seconds]
freemint has quit [Remote host closed the connection]
freemint has joined #picolisp
freemint has quit [Remote host closed the connection]
freemint has joined #picolisp