yazap icon indicating copy to clipboard operation
yazap copied to clipboard

integer constraint

Open karlseguin opened this issue 1 year ago • 1 comments

Thanks for the library.

Any chance to add something like singleValueOptionInt(T) which parses the input into an int of type T (making sure both that it's a valid integer and that it's within min(T) and max(T).

karlseguin avatar Jun 24 '23 04:06 karlseguin

Yes, it is possible to add something like that. In fact, I am planning to add support for parsing values into other types as well. Once i have some free time, i will start to implementing it.

prajwalch avatar Jun 24 '23 08:06 prajwalch