summaryrefslogtreecommitdiff
path: root/vere/pkg/noun/jets/f/hint.c
blob: 175c3fb25aca6514a650e97cacf9a3c12f86aaba (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
  u3qf_hint(u3_noun sag,
            u3_noun tip)
  {
    if ( c3__void == tip ) {
      return c3__void;
    }
    if ( c3__noun == tip ) {
      return c3__noun;
    }
    else return u3nt(c3__hint, u3k(sag), u3k(tip));
  }
  u3_noun
  u3wf_hint(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_hint(sag, tip);
    }
  }