20 lines
308 B
Plaintext
20 lines
308 B
Plaintext
foo()
|
|
|
|
foo {|x| x * 2}
|
|
|
|
----------------------------------------------------
|
|
|
|
[
|
|
["function", "foo"], ["punctuation", "("], ["punctuation", ")"],
|
|
|
|
["function", "foo"],
|
|
["punctuation", "{"],
|
|
["operator", "|"],
|
|
"x",
|
|
["operator", "|"],
|
|
" x ",
|
|
["operator", "*"],
|
|
["number", "2"],
|
|
["punctuation", "}"]
|
|
]
|