scozv / algo-js

[obsoleted] has been moved to project Tango:
https://github.com/scozv/tango
GNU General Public License v3.0
2 stars 1 forks source link

add take(), skip() for array extension #11

Open scozv opened 10 years ago

scozv commented 10 years ago

From Algo.js of Google Code on August 01, 2013 19:30:15

What steps will reproduce the problem?

  1. when we sort an array
  2. if we just want to take the first 5 elements
  3. what shall we do?

What is the expected output? What do you see instead? we should write arr.take(5);

Please use labels and text to provide additional information. so as skip()

Original issue: http://code.google.com/p/algo-js/issues/detail?id=11

scozv commented 9 years ago

in progress, see 95fb082cc86af4caf3c1627ed52a74a7837b6962 and a97321aa8622987f73ed9ab065371ea5fe366ecb