https://garden.io logo
#🌱|help-and-getting-started
split helper function
# 🌱|help-and-getting-started
w

wonderful-table-85939

02/22/2023, 7:54 PM
should you be able to use array indexes on results of split? ${split("a,c",",")[0]}
also why is there no indexOf seems like that would be useful with slice
q

quaint-dress-831

02/24/2023, 10:37 AM
@wonderful-table-85939 I don't know the answer to this but I want you to have an answer so I'm bringing this further up the chain
@wonderful-table-85939 from the CEO himself: "The reason for not having indexOf is quite simply that we, well, hadn't made it But it's a valid feature request for sure You should be able to use numeric indexes on function outputs but I'm not sure it's been tested Could be an issue"
b

bright-policeman-43626

03/03/2023, 5:06 PM
Hey @wonderful-table-85939 we would love to have this feature in Garden! Would you be open to create a feature request in our Github? Thanks a lot!
8 Views