Skip to content

Repository files navigation

ruby-pairs

github action status

Install

gem install hexlet-pairs

Usage example

require 'pairs'

pair = Pairs.cons(3, 5)

puts Pairs.pair?(pair) # => true

puts Pairs.car(pair) # => 3
puts Pairs.cdr(pair) # => 5

puts Pairs.to_string(pair) # => '(3, 5)'

Hexlet Ltd. logo

This repository is created and maintained by the team and the community of Hexlet, an educational project. Read more about Hexlet.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

6 watching

Forks

Releases

Packages

Used by

Contributors

Languages