mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-12-04 20:54:21 +03:00
32 lines
422 B
C
32 lines
422 B
C
/* j/2/drop.c
|
|
**
|
|
** This file is in the public domain.
|
|
*/
|
|
#include "all.h"
|
|
|
|
|
|
/* functions
|
|
*/
|
|
u3_noun
|
|
u3_cqb_drop(u3_noun a)
|
|
{
|
|
if ( 0 == a ) {
|
|
return u3_nul;
|
|
}
|
|
else {
|
|
return u3nc(0, u3k(u3t(a)));
|
|
}
|
|
}
|
|
u3_noun
|
|
u3_cwb_drop(u3_noun cor)
|
|
{
|
|
u3_noun a;
|
|
|
|
if ( u3_none == (a = u3_cr_at(u3_cv_sam, cor)) ) {
|
|
return u3_none;
|
|
} else {
|
|
return u3_cqb_drop(a);
|
|
}
|
|
}
|
|
|