mirror of
https://github.com/vonhyou/lisp-interpreter.git
synced 2025-06-08 02:02:01 +00:00
update readme
This commit is contained in:
parent
1461b17e78
commit
19b8871a06
2 changed files with 2 additions and 2 deletions
2
prol.rb
2
prol.rb
|
@ -50,7 +50,7 @@ module Lisp
|
|||
|
||||
def self.make_global
|
||||
@global_env ||= begin
|
||||
ops = %i[== != < <= > >= + - * /]
|
||||
ops = %i[== != < <= > >= + - * / % & | ^ ~]
|
||||
ops.inject({}) do |scope, op|
|
||||
scope.merge op => ->(*args) { args.inject(&op) }
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue