summaryrefslogtreecommitdiff
path: root/vere/pkg/noun/jets/f/hint.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/f/hint.c
claude is gud
Diffstat (limited to 'vere/pkg/noun/jets/f/hint.c')
-rw-r--r--vere/pkg/noun/jets/f/hint.c32
1 files changed, 32 insertions, 0 deletions
diff --git a/vere/pkg/noun/jets/f/hint.c b/vere/pkg/noun/jets/f/hint.c
new file mode 100644
index 0000000..175c3fb
--- /dev/null
+++ b/vere/pkg/noun/jets/f/hint.c
@@ -0,0 +1,32 @@
+/// @file
+
+#include "jets/q.h"
+#include "jets/w.h"
+
+#include "noun.h"
+
+
+ u3_noun
+ u3qf_hint(u3_noun sag,
+ u3_noun tip)
+ {
+ if ( c3__void == tip ) {
+ return c3__void;
+ }
+ if ( c3__noun == tip ) {
+ return c3__noun;
+ }
+ else return u3nt(c3__hint, u3k(sag), u3k(tip));
+ }
+ u3_noun
+ u3wf_hint(u3_noun cor)
+ {
+ u3_noun sag, tip;
+
+ if ( c3n == u3r_mean(cor, u3x_sam_2, &sag, u3x_sam_3, &tip, 0) ) {
+ return u3m_bail(c3__fail);
+ } else {
+ return u3qf_hint(sag, tip);
+ }
+ }
+