Seriously icon indicating copy to clipboard operation
Seriously copied to clipboard

Smarter overloading with iterables

Open Mego opened this issue 9 years ago • 3 comments

  • If at first we don't succeed, try vectorizing
  • Other stuff?

Mego avatar Oct 31 '16 07:10 Mego

To that end, I'll start a list of commands that don't work with iterables.

  1. (permutations) doesn't work with H (head), t (tail), í (index)
  2. Z (zip) doesn't work with S (sort)

evlrobinson avatar Nov 22 '16 10:11 evlrobinson

Monads

Mego avatar Mar 03 '17 09:03 Mego

The linked commit fixes the specific issues mentioned in @Sherlock9's comment. As further issues come up, they will be fixed similarly. The issue is caused by commands that need to evaluate an entire iterable to work not properly handling generators. This will be fully fixed by a large-scale rewrite that is in progress, that uses monadic types internally to handling the various overloads of commands and apply them correctly to the various possible types that might be present.

Mego avatar Mar 05 '17 02:03 Mego