Created
February 26, 2025 20:06
-
-
Save radgeRayden/d8656b9b58ecf8967abf3cba439d7695 to your computer and use it in GitHub Desktop.
Scopes snippets
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
spice Scope->varargs (scope) | |
using import Array | |
scope as:= Scope | |
local values : (Array Value) | |
local keys : (Array Symbol) | |
for k v in (scope as Scope) | |
'append values v | |
'append keys (k as Symbol) | |
sc_argument_list_map_new (i32 (countof values)) | |
inline (i) | |
arg := values @ i | |
`(tupleof [(keys @ i)] arg) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment