mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-12-25 07:52:59 +03:00
34 lines
467 B
C
34 lines
467 B
C
/* j/2/need.c
|
|
**
|
|
** This file is in the public domain.
|
|
*/
|
|
#include "all.h"
|
|
|
|
|
|
/* functions
|
|
*/
|
|
u3_noun
|
|
u3qb_need(
|
|
u3_noun a)
|
|
{
|
|
if ( 0 == a ) {
|
|
return u3m_bail(c3__exit);
|
|
}
|
|
else {
|
|
return u3k(u3t(a));
|
|
}
|
|
}
|
|
u3_noun
|
|
u3wb_need(
|
|
u3_noun cor)
|
|
{
|
|
u3_noun a;
|
|
|
|
if ( u3_none == (a = u3r_at(u3x_sam, cor)) ) {
|
|
return u3m_bail(c3__exit);
|
|
} else {
|
|
return u3qb_need(a);
|
|
}
|
|
}
|
|
|