trueagi-io / metta-wam

A Hyperon MeTTa Interpreter/Transpilier that targets the Warren Abstract Machine
8 stars 11 forks source link

Implement 'capture' function in interpreter #52

Open TeamSPoon opened 2 months ago

TeamSPoon commented 2 months ago

We need to implement the 'capture' function in the interpreter as specified in stdlib.rs, stdlib_minimal.rs. A test file should also be created to ensure the function works correctly. The symbol for this function was found in the following files: stdlib.rs, stdlib_minimal.rs.

TeamSPoon commented 1 month ago
;; Public MeTTa
(@doc capture
  (@desc "Wraps an atom and capture the current space")
  (@params (
    (@param "Function name which space need to be captured")))
  (@return "Function"))
(: capture (-> Atom Atom))
;; Implemented from Interpreters