Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6546717
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T11:44:32+00:00 2026-05-25T11:44:32+00:00

I noticed that new lambda syntax -> in Ruby 1.9 is not supported even

  • 0

I noticed that new lambda syntax -> in Ruby 1.9 is not supported even in the latest 1.6.4 jruby release. So, I am guessing this syntax is not commonly used in the ruby community. Is it because the syntax is new or are there any other disadvantages?

x = -> y { y+1 }
x.call(2)

This returns 3 in ruby 1.9.1 and gives a syntax error in jruby 1.6.4

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T11:44:32+00:00Added an answer on May 25, 2026 at 11:44 am

    You are not running it in 1.9 mode.

    $ jruby --1.9 -S irb
    irb(main):001:0> x = -> y { y+1 }
    => #<Proc:0x1e937f@(irb):1 (lambda)>
    irb(main):002:0> x.call(2)
    => 3
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I noticed that JavaScript's new Date() function is very smart in accepting dates in
I noticed that if you do a throw new InvalidCastException for example, the channel
I've noticed that when generating a new C++ project using MS Visual Studio 2008,
I'm relatively new to Threading in Java and I've noticed that everytime I use
Since starting at a new company I've noticed that they use unity cpp files
I'm new to RubyAmf. I noticed that you can send an object with RubyAmf
In the course of my career I've noticed that developers working on new functionality
I am relatively new to C#, and I noticed something interesting today that I
I noticed that ASP.NET 4 has a new feature called 'Routing' or something similar.
I noticed that we always just are like: SmtpClient mSmtpClient = new SmtpClient(); //

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.