Sha256: 18b331c24418fed2df98b4682fa0ca0a8ea042bd3bd9fcf5e38bbef4aa7150f7

Contents?: true

Size: 186 Bytes

Versions: 2

Compression:

Stored size: 186 Bytes

Contents

(define + 
  (native_function "
    Proc.new() do |arguments, interpreter|
      tmp = arguments.map {|item| interpreter.evaluate(item)}
      tmp.inject {|sum, n| sum + n}
    end
  "))

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
flea-0.1.1 lib/flea/standard_library/addition_operator.scm
flea-0.1.0 lib/flea/standard_library/addition_operator.scm