<olaf_h>
yeah, i see - and (mapcar 'car '(("de" 1)("foo" 2)("de" 3))) would return my list: '("de" "foo" "de" )
brandelune has joined #picolisp
<aw->
right
<aw->
(mapcar car ...) is fine
<aw->
hmmm i dont think Regenaxer would approve that
<olaf_h>
cool, looks nice and feels easy to do - thanks
<olaf_h>
what do you mean, he would not approve?
<olaf_h>
the car without apostroph?
<olaf_h>
thanks for the hints and snippets, aw- , i will check, if it fits
<aw->
no no, never mind it's fine ;)
<beneroth>
sry, was away
<beneroth>
aw-, the more advanced way (for big lists) would be (idx) and (lup) :-)
<aw->
beneroth: why? why use complex structures for something so simple?
<aw->
well yes i guess if the list is huge there might be a performance benefit from using indexes
<beneroth>
T
<beneroth>
exactly. only use for really big lists
<beneroth>
for simple mappings I also just use a list with cons pairs in it, accessed via assoc and rassoc (very useful)
<aw->
right, cons pairs
<aw->
'(("de . 1) ("foo . 2) ("de" . 3))
<beneroth>
for smaller amounts of data, a simple list has better performance than a tree, because the tree has additional branch nodes, so more storage and more indirections
<beneroth>
yep
<beneroth>
(rassoc) is very useful
<aw->
T
<aw->
ok i'm out
<aw->
g'nite
aw- has quit [Quit: Leaving.]
<Regenaxer>
olaf_h sorry, was in a Meeting
<Regenaxer>
For me (mapcar car ...) is fine
<Regenaxer>
afp, going back home
<beneroth>
:)
<olaf_h>
np at all
olaf_h has quit [Quit: Leaving]
<Regenaxer>
:)
cranium has quit [Quit: Leaving]
brandelune has quit [Quit: Leaving]
alexshendi has joined #picolisp
alexshe86 has joined #picolisp
alexshendi has quit [Read error: Connection reset by peer]
alexshendi has joined #picolisp
alexshe86 has quit [Read error: Connection reset by peer]
alexshe4 has joined #picolisp
alexshendi has quit [Read error: Connection reset by peer]