mirror of
https://github.com/PaddiM8/kalker.git
synced 2025-01-31 08:59:15 +01:00
Added sum function to symbol_table::contains_fn
This commit is contained in:
parent
fd29599e31
commit
7c05d1ab22
@ -74,7 +74,9 @@ impl SymbolTable {
|
||||
}
|
||||
|
||||
pub fn contains_fn(&self, identifier: &str) -> bool {
|
||||
prelude::UNARY_FUNCS.contains_key(identifier)
|
||||
identifier == "sum"
|
||||
|| identifier == "Σ"
|
||||
|| prelude::UNARY_FUNCS.contains_key(identifier)
|
||||
|| prelude::BINARY_FUNCS.contains_key(identifier)
|
||||
|| self.hashmap.contains_key(&format!("fn.{}", identifier))
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user