knave 0.11.3

A small Lisp for humans and agents that infers types and ownership and compiles to readable Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use crate::core::BindingId;
use crate::types::TypedProgram;

pub struct StoredFunctions<'a> {
    program: &'a TypedProgram,
}

impl<'a> StoredFunctions<'a> {
    pub fn new(program: &'a TypedProgram) -> Self {
        Self { program }
    }

    pub fn stores(&self, binding: BindingId) -> bool {
        self.program.stored_function_parameters.contains(&binding)
    }
}