« first day (644 days earlier)      last day (620 days later) » 

12:42 PM
@Dennis I've implemented and made a pull request for a key quick using ƙ based on J's key adverb.
 
 
4 hours later…
4:46 PM
@miles That's essentially group-by, yes? I kept forgetting to add that. :)
Well, not quite, but similar.
 
5:01 PM
yeah, and you could already use monad group Ġ to make something similar. This just makes it shorter and easier if you need to apply an operation to the groups, and if you are using a separate list to select your groups
 
5:27 PM
@Dennis
if returns 0 for [0, 0, [], 0] then returning 1 for [0, 0, [], 0] may be a problem...wait it got fixed?
(btw I don't think it has been pulled to tio yet)
 
never returned 1 for [0, 0, [], 0].
 
Sorry, 1.
 
sorry
[“”,1,2]Ȧ returning 1
is this a problem?
 
No, this is expected behavior.
31
Q: Is it true? Ask Jelly!

DennisBackground Inspired by Octave's (and, by extension, MATL's) very convenient interpretation of truthy/falsy matrices, Jelly got the Ȧ (Octave-style all) atom. Ȧ takes an array as input and returns 1 if the array is non-empty and does not contain the number 0 (integer, float, or complex) anywhere...

 
5:34 PM
that's where I read about that weird behavior
it's not exactly the same as ẸȧẠ
 
Why would it be?
 
at least I think clarifying the docs would be better
it's really "z doesn't contain 0 and is non-empty."
 
Not quite. The empty array returns 0.
@EriktheOutgolfer What does it say now?
 
> Any and all; return 0 if z is empty or contains a falsey value, else 1.
where I take [] to be such a "falsey value"
but [[0]]Ȧ returns 0
so maybe it should instead say
> Any and all; return 0 if z is empty, or contains a falsey value when flattened, else 1.
or even
> Any and all; return 0 if z is empty, or contains 0 when flattened, else 1.
 
Feel free to change it to whatever you consider better.
 
5:40 PM
yeah I'll also add
 
@EriktheOutgolfer Corrected.
 
heh
oh is already added to the docs
@Dennis done
and yes the punctuation there is important
 
6:27 PM
@miles how does the new quick "key" behave?
 
I believe it is groups the equal elements and applies a monad to them
Like this: Try it online!
If it has other functions, please give us some clarifications (cc @miles)
 
6:43 PM
that's pretty much it xcoder
 
@miles What is the explanation for the weird behaviour pointed out by erik?
 
the quick transforms a monad into a dyad that groups the rhs based on the lhs, and applies the monad to each group
it doesnt take a nilad so I have no idea what that output represents
 
oh ok
BTW Please ping
 
continuing, if the lhs has less items then the rhs, the remaining items on the rhs are grouped together
also, if given an integer, it converts it to its digits and operates on that instead
for example, Lƙ` is a monad that computes the frequency of each unique char, sorted by first appearance (link)
 
Nice
 
7:16 PM
@Mr.Xcoder The original motivation was from this challenge, and it includes another example usage for the key quick
 

« first day (644 days earlier)      last day (620 days later) »