Add a sugar module

This commit is contained in:
Emery Hemingway 2024-04-22 13:22:01 +02:00
parent a83ca8b31c
commit fd498c6457
1 changed files with 6 additions and 0 deletions

6
src/preserves/sugar.nim Normal file
View File

@ -0,0 +1,6 @@
# SPDX-FileCopyrightText: ☭ Emery Hemingway
# SPDX-License-Identifier: Unlicense
import ../preserves, ./private/macros
proc `%`*(n: SomeInteger): Value {.inline.} = n.toPreserves