Skip to content

Commit 850db92

Browse files
committed
Rename file
1 parent 5abf5dd commit 850db92

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

examples/overall.rb renamed to examples/overall.lit

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
1-
say_hello = n -> puts("hello {n}")
2-
say_hello = fn(n) puts("hello {n}")
31
say_hello = fn { |n| puts("hello {n}") }
4-
say_hello = { |n| puts("hello {n}") }
5-
sum = (a, b) -> a + b
2+
say_hello = { |n| puts("hello {n}") } # Future
3+
sum = fn { |a, b| a + b }
64
a = 1
75
b = 2
86
c = sum(a, b)
@@ -11,7 +9,7 @@
119
first, _ = expressions
1210
((first == 'yay') == true) != false
1311

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

1715
github_user_names = {

0 commit comments

Comments
 (0)