Fix string/contains

This fixes `string/contains` to be consistent with it's descriptions, as well as it's implementation in Clojush
This commit is contained in:
Erik Rauer 2021-03-16 22:47:41 -05:00
parent 227a41b376
commit ca311c9f36

View File

@ -38,7 +38,7 @@
:string_contains
^{:stacks #{:boolean :string}}
(fn [state]
(make-instruction state string/includes? [:string :string] :boolean)))
(make-instruction state #(string/includes? %2 %1) [:string :string] :boolean)))
;; Pushes TRUE if the top CHAR is contained in the top STRING, and FALSE
;; otherwise