Skip to content

Commit

Permalink
Rename file
Browse files Browse the repository at this point in the history
  • Loading branch information
MatheusRich committed Nov 13, 2020
1 parent 5abf5dd commit 850db92
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions examples/overall.rb → examples/overall.lit
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
say_hello = n -> puts("hello {n}")
say_hello = fn(n) puts("hello {n}")
say_hello = fn { |n| puts("hello {n}") }
say_hello = { |n| puts("hello {n}") }
sum = (a, b) -> a + b
say_hello = { |n| puts("hello {n}") } # Future
sum = fn { |a, b| a + b }
a = 1
b = 2
c = sum(a, b)
Expand All @@ -11,7 +9,7 @@
first, _ = expressions
((first == 'yay') == true) != false

expressions_with_emotion = map(expressions, exp -> exp + '!')
expressions_with_emotion = map(expressions, fn { |exp| exp + '!' })
expressions_with_emotion = map(expressions, it + '!')

github_user_names = {
Expand Down

0 comments on commit 850db92

Please sign in to comment.