mirror of
https://github.com/urbit/shrub.git
synced 2024-12-15 04:22:48 +03:00
33 lines
449 B
C
33 lines
449 B
C
/* j/3/xeb.c
|
|
**
|
|
*/
|
|
#include "all.h"
|
|
|
|
|
|
/* functions
|
|
*/
|
|
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);
|
|
}
|
|
}
|
|
|