Skip to content

Conversation

@costinpapuc
Copy link

No description provided.

@zmack
Copy link
Owner

zmack commented Nov 1, 2015

Foarte mișto. Sper că nu te-ai plictisit prea mult săptămâna asta :octocat:

@costinpapuc
Copy link
Author

Chiar deloc 🌰 :squirrel:

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

apropo:

[1] pry(main)> (1..10).to_a.select(&:odd?)
=> [1, 3, 5, 7, 9]
[2] pry(main)> (1..10).to_a.reject(&:odd?)
=> [2, 4, 6, 8, 10]

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Super tare! Exista functie pentru aproape orice 😆. Si devine mai frumos items.reject(&:done?) si items.select(&:done?)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants