mirror of
https://github.com/darkrenaissance/darkfi.git
synced 2026-04-28 03:00:18 -04:00
fixing map and zkcons syntax
This commit is contained in:
@@ -277,7 +277,8 @@ fn eval(mut ast: MalVal, mut env: Env) -> MalRet {
|
||||
let value = eval_ast(&a2, &env)?;
|
||||
match value {
|
||||
List(ref el, _) => {
|
||||
zkcons_eval(el.to_vec(), &a1, &env);
|
||||
println!("{:?}", el);
|
||||
//zkcons_eval(el.to_vec(), &a1, &env);
|
||||
}
|
||||
_ => println!("invalid format"),
|
||||
}
|
||||
|
||||
@@ -9,12 +9,19 @@
|
||||
;; (sub lc0 x)
|
||||
;; )
|
||||
;; )
|
||||
(zkcons! circuit (map (fn* [b] (
|
||||
(map (fn* [b] (
|
||||
(zkcons! circuit (
|
||||
(add lc0 one)
|
||||
(sub lc0 b)
|
||||
(add lc1 x)
|
||||
(add lc1 x))
|
||||
;; 'enforce)
|
||||
)) bits))
|
||||
))) bits)
|
||||
;; (zkcons! circuit (map (fn* [b] (
|
||||
;; (add lc0 one)
|
||||
;; (sub lc0 b)
|
||||
;; (add lc1 x)
|
||||
;; 'enforce)
|
||||
;; )) bits))
|
||||
;; (def! enforce-loop-const (map (fn* [b] (
|
||||
;; (add lc0 one)
|
||||
;; (sub lc0 b)
|
||||
|
||||
Reference in New Issue
Block a user