(&mut self, op: u16)
| 142 | } |
| 143 | |
| 144 | pub fn call_set(&mut self, op: u16) -> Result<(), VmErr> { |
| 145 | if op == 0 { |
| 146 | let val = self.alloc_set(Vec::new())?; |
| 147 | self.push(val); |
| 148 | } else { |
| 149 | let o = self.pop()?; |
| 150 | let src = self.extract_iter(o, true)?; |
| 151 | let val = self.alloc_set(src)?; |
| 152 | self.push(val); |
| 153 | } |
| 154 | Ok(()) |
| 155 | } |
| 156 | |
| 157 | /* `frozenset()` | `frozenset(iter)`, construct an immutable, hashable set from an iterable. Without args returns the empty frozenset. */ |
| 158 | pub fn call_frozenset(&mut self, argc: u16) -> Result<(), VmErr> { |
no test coverage detected