Skip to content

Latest commit

 

History

History
42 lines (29 loc) · 377 Bytes

arith.md

File metadata and controls

42 lines (29 loc) · 377 Bytes

+, -, *, /, %

The base implementation for + - + / %

(+ 1 2 3) # ==> 6

+
  1
  2
  3 # ==> 6

+ \ 1; 2; 3 # ==> 6
1 - 2 - 3 # ==> -4

-
  1
  2
  3 # ==> -4
[ 1 2 3 ]
+ _ # ==> 6

[ 2 3 4 ]
* _ # ==> 24
+ "hell" "o"
"hel" + "lo"
  # both yield "hello"