ETHproductions / japt

Japt 1.4.5, the other JavaScript golfing language
http://ethproductions.github.io/japt
74 stars 10 forks source link

Added 'First n elements of a sequence' method #52

Closed drakari closed 5 years ago

drakari commented 5 years ago

Added F.h method, which is like F.g but it returns the first n items instead of just the nth item. Used h so that it would always be close to F.g for easy referencing in the docs. Example use

ETHproductions commented 5 years ago

Thanks, that's a good idea!