Repository navigation
v0.1.0
The first release of proconio-zig.
Added
proconio.init- Returns a
Proconioinstance that provides an easy way to read values from stdin.
- Returns a
proconio.initInteractive- An interactive version of
proconio.init. - The normal
proconio.initreads the entire input at once in judge environment to optimize I/O performance. However this does not work well with interactive probrems.
- An interactive version of
proconio.ProconioAny- It has
deinitandinputmethod to handle input and memory management.
- It has
Supported types for input:
| Type | Support | Notes |
|---|---|---|
void |
✅ | Ignored input token |
int |
✅ | Parsed using std.fmt.parseInt with base = 0 |
float |
✅ | Parsed using std.fmt.parseFloat |
bool |
✅ | Custom conversion function can be overridden |
enum |
✅ | If a number is provided, it attempts to convert it to an enum value |
array |
✅ | — |
optional |
✅ | If parsing fails, the value is set to null |
vector |
✅ | — |
struct |
🟡 | Partial support |
pointer |
❌ | Not supported |
Full Changelog: https://github.com/Ryoga-exe/proconio-zig/commits/v0.1.0