OverviewFilesCommitsIssuesDocsReleasesPeers

opencog-atomspace commits / 2db9132

Remove more of the deprecaed old functions
2db9132287e186cabff69507846cb54752fbad5d
by Linas Vepštas <linasvepstas@gmail.com> · 2026-01-23T05:46:36.000Z

Changed files (1) +6 -6

examples/flow/flow-futures.scm +6 -6
……@@ -142,10 +142,10 @@
142142 (BoolValue 0 0 1))
143143
144144; Verify that masking works
145(cog-execute!
145(Trigger
146146 (Decimate
147147 (BoolValueOf (Concept "someplace") (Predicate "mask key"))
148 (FloatValueOf (AnyNode "grand total") cvp)))
148 (FloatValueOf (List (Any "left wildcard") (Any "right wildcard")) cvp)))
149149
150150; Wrap it in a utility constructor
151151(define (make-deci ATOM)
……@@ -162,7 +162,7 @@
162162 (Divide
163163 (Times
164164 (make-deci (List (Variable "$L") (Variable "$R")))
165 (make-deci (AnyNode "grand total")))
165 (make-deci (List (Any "left wildcard") (Any "right wildcard"))))
166166 (Times
167167 (make-deci (List (Variable "$L") (Any "right wildcard")))
168168 (make-deci (List (Any "left wildcard") (Variable "$R"))))))))
……@@ -171,7 +171,7 @@
171171; As before.
172172(define (install-scalar THING-A THING-B)
173173 (define pair (List THING-A THING-B))
174 (cog-execute!
174 (Trigger
175175 (SetValue pair (Predicate "Alt MI Key")
176176 (CollectionOf (Type 'FormulaStream) (OrderedLink
177177 (ExecutionOutput (DefinedProcedure "scalar MI") pair))))))
……@@ -182,10 +182,10 @@
182182
183183; Get the value
184184(define (get-computed-scalar THING-A THING-B)
185 (cog-value (List THING-A THING-B) (Predicate "Alt MI Key")))
185 (ValueOf (List THING-A THING-B) (Predicate "Alt MI Key")))
186186
187187(define (get-mi-scalar STRING-A STRING-B)
188 (get-computed-scalar (Concept STRING-A) (Concept STRING-B)))
188 (Trigger (get-computed-scalar (Concept STRING-A) (Concept STRING-B))))
189189
190190; Try it out. Need to install it before first use.
191191(install-scalar-mi "hello" "world")