GithubHelp home page GithubHelp logo

Head and tail about nspl HOT 4 OPEN

ihor avatar ihor commented on May 22, 2024
Head and tail

from nspl.

Comments (4)

 avatar commented on May 22, 2024 1

Apparently init is also missing, which returns all elements but the last, so it's the reverse of last and does what tail does, but for the last instead of the first element.

See also here or this very enlightening picture (by Miran Lipovača):

https://s3.amazonaws.com/lyah/listmonster.png

from nspl.

ihor avatar ihor commented on May 22, 2024 1

Hey! Thanks for your suggestions. The functions are missing because I never needed them. I started this library when I was also working with Python and tried to copy some of the things I liked to PHP (and fix the weird API of the standard library).

I'll review @tominventisbe 's PRs this weekend.

from nspl.

Lambik avatar Lambik commented on May 22, 2024

@ihor I suppose "this weekend" has already passed, and there are 3 PRs open that seem nice :-) Not that I need them right this instant or something, but for completion of the library's sake, could you review them? I like the zip-one for instance.

from nspl.

jtojnar avatar jtojnar commented on May 22, 2024

@ihor I can help maintain the library if you do not have the time.

from nspl.

Related Issues (7)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.