summaryrefslogtreecommitdiff
path: root/vere/pkg/noun/jets/f/face.c
diff options
context:
space:
mode:
Diffstat (limited to 'vere/pkg/noun/jets/f/face.c')
-rw-r--r--vere/pkg/noun/jets/f/face.c31
1 files changed, 31 insertions, 0 deletions
diff --git a/vere/pkg/noun/jets/f/face.c b/vere/pkg/noun/jets/f/face.c
new file mode 100644
index 0000000..7e689e7
--- /dev/null
+++ b/vere/pkg/noun/jets/f/face.c
@@ -0,0 +1,31 @@
+/// @file
+
+#include "jets/q.h"
+#include "jets/w.h"
+
+#include "noun.h"
+
+
+ u3_noun
+ u3qf_face(u3_noun sag,
+ u3_noun tip)
+ {
+ if ( c3__void == tip ) {
+ return c3__void;
+ }
+ else return u3nt(c3__face,
+ u3k(sag),
+ u3k(tip));
+ }
+ u3_noun
+ u3wf_face(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_face(sag, tip);
+ }
+ }
+