Search
Thursday, 13th of August 2020, 9:10:16 UTC
11:50:32
ldb
just find that irc channel name is case insensitiive
11:50:50
jackdaniel
no no, it just upcases by default :)
12:30:55
sp-r5rs
I used to have a sense of humor, but then they changed what humor was.
12:31:18
sp-r5rs
Now I make 30 year old unfunny cultural references, including PreScheme.
12:32:17
phoe
please tell me if I've made a mistake, I'll reverse it.
12:35:41
jackdaniel
imo you have not made a mistake. you could give them a warning first though.
12:36:01
phoe
jackdaniel: point taken, thanks.
15:07:56
remexre
where do I put an ftype in an flet/labels? is a declare inside the function body sufficient?
15:09:57
jackdaniel
yes, declarations are processed by the compiler /before/ the function is compiled
15:10:16
jackdaniel
so i.e if you declare a function to have a dynamic-extent, then that information /may/ be used by the compiler i.e to inline it
15:10:40
jackdaniel
s/inline/allocate on the stack/, I suppose inlining has nothing to do here
15:11:08
jackdaniel
well, maybe something, either way nevermind that
16:22:48
Lord_of_Life_
** NICK Lord_of_Life
17:15:49
VincentVega
hi all! Is there last/first for sequences? Provided by some utility library maybe?
17:19:12
Josh_2
you can make that with subseq
17:31:04
Bike
note that subseq conses, and it pretty much has to for sequences not built on lists
17:35:59
VincentVega
Bike: Actually I just want these for an array. So I suppose gonna go with (aref a (length a)) then.
17:36:17
Bike
last doesn't return the last element, it returns the cons it's in
17:36:33
Bike
if you just want the element then generically you can do (elt seq (1- (length seq)))
17:36:52
VincentVega
Bike: yeah, just the element
17:37:02
Bike
(elt seq (length seq)) will be out of bounds
17:37:17
VincentVega
Bike: cool, I will use that, thanks!
20:02:17
aeth
IMO... You almost never want subseq except at the last stage of an operation (e.g. when you want to turn an adjustable string you just built up with vector-push-extend into a regular simple-string of a fixed length)
20:02:59
aeth
Almost everything for vectors/sequences should have start/end which should be used for vectors (including strings) until that point. If the API doesn't, patch it to!
20:04:12
markasoftware_
** NICK markasoftware
Thursday, 13th of August 2020, 21:10:16 UTC