Code not working


crew = {
captain: "Picard",
first_officer: "Riker",
lt_cdr: "Data",
lt: "Worf",
ensign: "Ro",
counselor: "Troi",
chief_engineer: "LaForge",
doctor: "Crusher"

Add your code below!

first_half = lambda {|r,n| r[n] < "M"}
a_to_m =

this is giving me the error:
Oops, try again. Your code doesn't look quite right. Check the Hint if you need help!
I dont understand why can someone help


Lesson 20:
you use r[n] is wrong. because hash[key] => value.
So you must use first_half = lambda {|r,n| n < "M" } or first_half = lambda {|r,n| crew[r] < "M"
Lesson 21:
add a_to_m = => &first_half => call lambda