I’m trying to make the opposite of the “keep” block but I can not get it to work
Outside of a custom block it works fine
But the second I make it into a custom block it doesn’t
I’ve tried a few things but I’ve concluded that I would need to know how the block works (what system is uses to get its results) to be able to fix it further
I created my own definition for the block but I’d prefer to use the “keep” block as that one is just simply more stable
I always forgot about the change to the join block -_-
Why wouldnt run with inputs work tho
This one allows for usage of (value, index, array).
For a more general approach
I made a function that groups all items by result of a function applied to each item.
E.g. it can divide a list of numbers into a list of primes and one of non-primes:
... or multiple sublist, grouped by a number's smallest divisor:
This is the implementation code
It will determine the result of the function only once for each item, and no (relatively inefficient) CONTAINS operation is required.
I found a library block doing the same thing as my GROUP BY function (but slightly better); unsurprisingly it's called ; it's in the Frequency Distribution Analysis library.
Unrelated note: I personally prefer “recall  as (i)” rather than “let  be (i)”
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.