-
Notifications
You must be signed in to change notification settings - Fork 17
Open
Description
Hey π
I would like to suggest some functions to add to the GROQ queries if possible. I would love to add them myself, but not sure how or where to start. I have managed to create one by chaining the existing functions, but for the others I require functions that don't exists.
My suggestions are:
// truncate a string to N chars
string::truncate(string, number)
// Extra rounding functions
math::floor(number)
math::ceil(number)
// Convert/coherse string into a number - Not sure how to implement to float or int (Maybe a flag)
number(string)
// or:
number::int(string)
number::float(string)
Currently I am truncating a string with array::join(string::split((pt::text(body)), "")[0..255], "") which is not ideal π¬
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels