summaryrefslogtreecommitdiff
path: root/vere/pkg/noun/jets/c/xeb.c
diff options
context:
space:
mode:
authorpolwex <polwex@sortug.com>2025-10-05 21:56:51 +0700
committerpolwex <polwex@sortug.com>2025-10-05 21:56:51 +0700
commitfcedfddf00b3f994e4f4e40332ac7fc192c63244 (patch)
tree51d38e62c7bdfcc5f9a5e9435fe820c93cfc9a3d /vere/pkg/noun/jets/c/xeb.c
claude is gud
Diffstat (limited to 'vere/pkg/noun/jets/c/xeb.c')
-rw-r--r--vere/pkg/noun/jets/c/xeb.c32
1 files changed, 32 insertions, 0 deletions
diff --git a/vere/pkg/noun/jets/c/xeb.c b/vere/pkg/noun/jets/c/xeb.c
new file mode 100644
index 0000000..6a23ac1
--- /dev/null
+++ b/vere/pkg/noun/jets/c/xeb.c
@@ -0,0 +1,32 @@
+/// @file
+
+#include "jets/q.h"
+#include "jets/w.h"
+
+#include "noun.h"
+
+
+ u3_noun
+ u3qc_xeb(u3_atom a)
+ {
+ c3_w met_w = u3r_met(0, a);
+
+ if ( !_(u3a_is_cat(met_w)) ) {
+ return u3i_words(1, &met_w);
+ }
+ else return met_w;
+ }
+ u3_noun
+ u3wc_xeb(u3_noun cor)
+ {
+ u3_noun a;
+
+ if ( (u3_none == (a = u3r_at(u3x_sam, cor))) ||
+ (c3n == u3ud(a)) )
+ {
+ return u3m_bail(c3__exit);
+ } else {
+ return u3qc_xeb(a);
+ }
+ }
+