« first day (285 days earlier)      last day (979 days later) » 

12:41 AM
This might be a pretty simple question, but how to I apply an atom to every item in a list? For example, if I would like to get the length of each string in a list. I tried this but that returns the number of strings
 
 
3 hours later…
3:49 AM
@miles That sounds interesting.
@DJMcMayhem (each) is the map-quick. L€ does the job here.
 
Ah, so that's what quicks are for!
Thanks
 
np
Btw, feel free to ping me if you have questions.
 
Ok. One more question. What does L€ return? Can it be used in a chain?
 
L€ is like map(len,...) in Python. It returns an array of lengths.
 
And then that new array is a chain in the link?
 
3:55 AM
No, a chain is a list of instructions. The return values don't form part of it.
 
yeah, I understand that. I think maybe I'm just missing some of the terminology
 
What are you trying to do with the lengths array?
 
I was gonna try to answer helka's newest challenge in jelly, but I got beaten to it.
I'll probably still try to figure it out on my own, just for the experience
 
OK
 
 
9 hours later…
1:27 PM
I have an idea for a powerful pair of quicks, I think: “minimals” and “maximals”. Given a list of strings, LÐṀ keeps the ones that have maximal length.
Essentially, ÇÐṀ is Ç€M$ị$ is lambda z: [x for x in z if Ç(x) == max(map(Ç, z))].
And ÐṂ would work similarly. I’m going to implement them
 
 
3 hours later…
4:10 PM
 
4:30 PM
@Lynn Looks good. I'll accept it as soon as I get home.
 
 
5 hours later…
 
10:09 PM
@Lynn Merged both. Thanks!
 
Thank you, too~
 
AttributeError: module 'sympy.ntheory.factor_' has no attribute 'divisor_sigma'
Looks like my SymPy needs updating.
 
10:30 PM
That’s possible, yeah. I have 1.0.0 (or was it 1.0?)
carmichael is actually in sympy version 1.0.1-dev (as reduced_totient), but that’s hard to get right now, so I just reimplemented it
 
10:49 PM
Added to the wiki.
 
11:04 PM
 

« first day (285 days earlier)      last day (979 days later) »