jellylanguage icon indicating copy to clipboard operation
jellylanguage copied to clipboard

Ðg - Apply link, get runs, mold original list based on them

Open GolfingSuccess opened this issue 7 years ago • 2 comments

Important notes:

  • Getting the runs is done by using the group_equal function directly, not based on the Œg atom's behavior.
  • Molding is done based on the atom's call.

Note: Please test this if you can, I don't have time right now.

GolfingSuccess avatar May 24 '18 14:05 GolfingSuccess

I like the idea. There are a few issues with the implementation though.

  1. Your code contains two syntax errors.

  2. Hypers are deprecated and should no longer be added to the interpreter.

  3. I'd like to use Ðg to mimic Œg's grouping as a quick. That way, we can add this one as ÐG, and ÐĠ to group the indices themselves, as Ġ does.

DennisMitchell avatar May 24 '18 14:05 DennisMitchell

I don't think this would work well for non-vectorizing links. The links should probably get mapped over the iterable.

DennisMitchell avatar May 25 '18 14:05 DennisMitchell