We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5abf5dd commit 850db92Copy full SHA for 850db92
examples/overall.rb renamed to examples/overall.lit
@@ -1,8 +1,6 @@
1
-say_hello = n -> puts("hello {n}")
2
-say_hello = fn(n) puts("hello {n}")
3
say_hello = fn { |n| puts("hello {n}") }
4
-say_hello = { |n| puts("hello {n}") }
5
-sum = (a, b) -> a + b
+say_hello = { |n| puts("hello {n}") } # Future
+sum = fn { |a, b| a + b }
6
a = 1
7
b = 2
8
c = sum(a, b)
@@ -11,7 +9,7 @@
11
9
first, _ = expressions
12
10
((first == 'yay') == true) != false
13
14
-expressions_with_emotion = map(expressions, exp -> exp + '!')
+expressions_with_emotion = map(expressions, fn { |exp| exp + '!' })
15
expressions_with_emotion = map(expressions, it + '!')
16
17
github_user_names = {
0 commit comments