src/main.c
static struct Value floatValue(float const f, struct Allocator *const allocator)
{
        float *result = allocator_alloc(allocator, sizeof *result);
        *result = f;
        return (struct Value){.type_tag = TTAG_FLOAT,
                              .element_size = sizeof *result,
                              .address = result};
}
/* 1. extensions to values & transducers */
1. extensions to values & transducers
1 . extensions to values & transducers
static struct Value floatValue(float const f, struct Allocator *const allocator)
{
        float *result = allocator_alloc(allocator, sizeof *result);
        *result = f;
        return (struct Value){.type_tag = TTAG_FLOAT,
                              .element_size = sizeof *result,
                              .address = result};
}
static struct Value floatValue ( float const f , struct Allocator * const allocator ) { float * result = allocator_alloc ( allocator , sizeof * result ) ; * result = f ; return ( struct Value ) { . type_tag = TTAG_FLOAT , . element_size = sizeof * result , . address = result } ; }
1. extensions to values & transducers
1 . extensions to values & transducers