summaryrefslogtreecommitdiff
path: root/vere/pkg/noun/jets/c/xeb.c
blob: 6a23ac1d3e1f6e5ada1f5487bce3badb8fcd50d7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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);
    }
  }