Removed unrelated section about lambdas (#18734)
This commit is contained in:
@@ -41,11 +41,7 @@ You can check the last element of an array with the `last` method:
|
||||
mixed_array.last # true
|
||||
```
|
||||
|
||||
#### Ruby Lambda
|
||||
A lambda is also commonly referred to as an anonymous function. To create a lambda in Ruby, you can use the following syntax:
|
||||
```ruby
|
||||
lambda = lambda {}
|
||||
```
|
||||
|
||||
|
||||
#### More Information:
|
||||
<a href='https://ruby-doc.org/core-2.4.2/Array.html' target='_blank' rel='nofollow'>Ruby array documentation</a>
|
||||
|
Reference in New Issue
Block a user