7:16:51Shinmera"#+ operates by first reading the feature expression and then skipping over the form if the feature expression fails. While reading the test, the current package is the KEYWORD package. "
15:23:59flip214I'd like an average to be of the same type as the input (integers, floats, ratios), but (coerce (/ sum count) (type-of (first input))) doesn't work
15:34:41pjbflip214: use a hash-table, or a vector.
15:35:06Bikei'm with loke in not understanding why you want this. you'll have to apply these rules yourself by checking the classes of the arguments.
15:35:49Bikeunlike the contagion rules in the language arithmetic these don't even associate, i don't think
15:36:12pjbIf you want to convert numbers to numbers, some rounding will be necessary. And even, how do you round #C(2 2) to integer? Is it 2? 3? 4? does this mean anything?
15:37:05nirvedflip214: maybe you'd like to take the median instead of mean
15:37:17Bikewell you could only get a complex average if one of the arguments was complex
15:37:27Bikein which case presumably there would be no coercion to integer
15:37:29loke`And even if you have solution in your specific case (such as for example just taking the realpart of a complex number), that's never a generic solution.
15:37:49flip214pjb: I'd like to print average and stddev in the same format as the input.. so that column values (1 2 3 4) don't require a 2.5 in the "average" row
15:38:02Bikei mean, your average will be wrong, then
15:38:08flip214actual numbers are 7 digits or more, so rounding is insignificant
18:47:29bbsldoes cl base have any way to manipulate strings like lists? I just need a way to from a string get head (the first char) and tail (the rest of the chars)
18:48:23kritixilithosbbsl: in cl a string is an array
18:49:39Xachbbsl: you would use subseq to get parts of the string. or you could displace an array to parts of the string. the sequence operations have different implications than with lists.
18:49:49Xachyou can't get the tail of a string for "free"