Syntex Error


#1

https://www.codecademy.com/en/courses/ruby-beginner-en-L3ZCI/2/4?curriculum_id=5059f8619189a5000201fbcb#


#2

Two things off the top of my head,

  • You didn't check if x is a Symbol.
  • When using .select, you need to put parentheses.

#3

I don't think anything is wrong with As far as .Select is concerned.

Second is that i have changed X as per your advice but can't see any changes


#4

I don't think anything is wrong with As far as .Select is concerned.

Well you did put curly brackets after it...

Second is that i have changed X as per your advice but can't see any changes

"Create a lambda, symbol_filter, that takes one parameter and checks to see if that parameter .is_a? Symbol"


#5

https://ruby-doc.org/core-2.2.3/Enumerable.html#method-i-select

Put curly because of this


#6

Fair enough. But to pass the exercise you'll have to use parentheses...


#7

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.