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
v_m_v has quit [Remote host closed the connection]
v_m_v has joined #picolisp
v_m_v has quit [Remote host closed the connection]
ick has joined #picolisp
ick has quit [Quit: Konversation terminated!]
v_m_v has joined #picolisp
v_m_v has quit [Remote host closed the connection]
v_m_v has joined #picolisp
<v_m_v> Hello. What is the difference between Idx and IdxFold for String?
<abu[m]> +Idx indexes only substrings, but +IdxFold also indexes the 'fold'ed representation
<abu[m]> Allows tolerant searches
<v_m_v> Thx. What is the simplest way of generate 2d array filled with 0 :)
<v_m_v> Hmm I've found ideintity matrix example ...it should be fine ...after some modifications
<abu[m]> : (make (do 3 (link (need 3 0))))
<abu[m]> -> ((0 0 0) (0 0 0) (0 0 0))
<abu[m]> Yeah, though identity does a little more
<v_m_v> thank you :)
v_m_v has quit [Remote host closed the connection]
<abu[m]> ☺
v_m_v has joined #picolisp
v_m_v has quit [Ping timeout: 272 seconds]
v_m_v has joined #picolisp
<v_m_v> how I can get n'th element from an array? and how I can change n-th element from an array
<v_m_v> Ok...get is working for getting ...how about changing ? :D
<beneroth> use (get)
<beneroth> changing is a bit complex, check (conc) I believe
<beneroth> or look at (make) and (chain) that is easier, but a bit less efficient, but not much if you can use chain for the rest
<v_m_v> why not assoc?
<v_m_v> also is there something simillar to (begin in scheme? I would like to run different commands and then return the last value
<beneroth> assoc is to find
<beneroth> in already build list
<beneroth> like (member)
<beneroth> but for cons pairs
<beneroth> what does (begin) do? maybe it's (later) in picolisp?
<v_m_v> hmmm later is not what I am looking for.
<v_m_v> Hmm (de A () (begin (print "tra tra tra") (inc 1) T)) in scheme in theory would print "tra tra tra" and return T
<v_m_v> https://pastebin.com/5dYqmxVU as in this example. What i should put on "Begin" to make it workable:D
<v_m_v> also how I can make fold/reduce on a list?
razzy has joined #picolisp
<Regenaxer> (put Lst 3 'a)
<Regenaxer> (get Lst 3)
TeddyDD has joined #picolisp
<Regenaxer> (if (= Col 0) -> (if (=0 Col) scnr ;)
<Regenaxer> 'prog' instead of 'begin' I suppose
<Regenaxer> But in this case better use 'when' instead of 'if'
<Regenaxer> I use 'if' only if there is an "else" part
<Regenaxer> otherwise 'when' or 'unless', they have an implied 'prog'
<Regenaxer> or, most general, use 'cond' (I think it is in all Lisps)
<abu[m]> Hmm, strange, I did not get all these messages here in Matrix
<abu[m]> unreliable ...
<Regenaxer> So I should really stay here
<Regenaxer> Anyway, as I understand it, 'begin' in Scheme simply corresponds to 'prog' in Pil
<Regenaxer> Next. What is fold/reduce on a list?
<Regenaxer> (excuse my ignorance of other Lisps or Schemes)
<abu[m]> I give up this Matrix bridge for now
abu[m] has left #picolisp [#picolisp]
<Regenaxer> ... and better survive as Regenaxer
<Regenaxer> Good night!
<v_m_v> Thx. How about reduce/fold ?
calle has joined #picolisp
razzy has quit [Quit: leaving]
v_m_v has quit [Remote host closed the connection]
theruran has quit [Quit: Connection closed for inactivity]
calle has quit [Ping timeout: 248 seconds]