Method: Functional::Tuple#first
- Defined in:
- lib/functional/tuple.rb
#first ⇒ Object Also known as: head
Returns the first element of the tuple or nil when empty.
211 212 213 |
# File 'lib/functional/tuple.rb', line 211 def first @data.first end |