Skip to content

Instantly share code, notes, and snippets.

@radgeRayden
Created February 26, 2025 20:06
Show Gist options
  • Save radgeRayden/d8656b9b58ecf8967abf3cba439d7695 to your computer and use it in GitHub Desktop.
Save radgeRayden/d8656b9b58ecf8967abf3cba439d7695 to your computer and use it in GitHub Desktop.
Scopes snippets
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