Giter Site home page Giter Site logo

Add lists to zbot about zhenya_bot HOT 5 CLOSED

fimad avatar fimad commented on May 24, 2024
Add lists to zbot

from zhenya_bot.

Comments (5)

numberten avatar numberten commented on May 24, 2024

I'm thinking valid syntax would be:
--Display usage message
!list
--Display list of list names, or elements in given list if optional param provided
!list show [list_name]
--Adds new list to list of lists
!list add list_name
--Adds new element to given list
!list cons list_name element
--Removes list from list of lists
!list rmlist list_name
--Removes element from given list
!list rm list_name element_number

Anything else? Does order matter for our lists? We could add a snoc or make it so you add to a particular index.

from zhenya_bot.

numberten avatar numberten commented on May 24, 2024

We could also consolidate syntax by making [element] an optional for param for rm and add like this:
!list add list_name [element]
!list rm list_name [element]

Where they add/remove lists from the list of list, or elements from the given list when an element is provided.

from zhenya_bot.

fimad avatar fimad commented on May 24, 2024

+1 for the consolidated syntax for adding and removing.

Do we want to support fancier features like searching or marking an element in a list as done?

from zhenya_bot.

numberten avatar numberten commented on May 24, 2024

Not sure about searching, I feel like that is something we could come back to and add if we ever feel a pressing need for it.

I like the idea of being able to mark things off as done.

from zhenya_bot.

numberten avatar numberten commented on May 24, 2024

Still todo:

  • Marking elements as done
  • Insertion at given indexes

from zhenya_bot.

Related Issues (20)

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.