Closed mwgkgk closed 6 years ago
Just noticed that vim syntax file actually considers take
a keyword (but not drop
): https://github.com/h3rald/min/blob/master/min.vim#L14
Ohhh yes, that would be useful indeed, I like the Haskell take
and drop
. Sure, I'll add them as soon as I get a chance, thanks!
Currently
shorten
throwsQuotation too short
error when the quotation is shorter than the given argument. If all we want is to make sure the quotation is no longer than X, a forgiving version of shorten could be useful.Minlang version:
Haskell's
take
behaves like this. Racket's take raises an exception. In both cases there's alsodrop
counterpart.All in all, just an idea, as using min version works perfectly fine.