Giter Site home page Giter Site logo

Comments (5)

erdos avatar erdos commented on May 22, 2024

Hello, this functionality is already available in the latest stencil:

from stencil.

achempion avatar achempion commented on May 22, 2024

I think [] operator works only on objects to access properties, not arrays, i.e. I can't slice arrays or get n-th element.

from stencil.

erdos avatar erdos commented on May 22, 2024

you are right, I need to check it again. Let me get back to this question at the end of the day.

from stencil.

erdostw avatar erdostw commented on May 22, 2024

I have release version 0.3.28 with the following improvements:

  1. Fixed the array access operator to work on lists (it was working only for Clojure vectors, not for Java lists). The bug also affected the map function for nested lists.
  2. Added the joinAnd function that supports your use case!

Let me know your thoughts.

from stencil.

achempion avatar achempion commented on May 22, 2024

It's working, would be great to have range access, like a[0..-1] but joinAnd solves currently all the needs 💚

from stencil.

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.