Sponsored Content
Full Discussion: What is Ruby?
Top Forums Shell Programming and Scripting What is Ruby? Post 302455317 by kurumi on Tuesday 21st of September 2010 09:00:30 AM
Old 09-21-2010
I see. Well, I am not sure about the distinctions between them...but i want to assume that if Ruby support functional prog , regular expression, then i would expect it to be a bit "declarative" as well. Smilie
 

6 More Discussions You Might Find Interesting

1. SuSE

how to ri-rdoc for Ruby on suse

Hello guys, This is suse SLES 9.2. I want to get ri working for all users on this system. I used gem rdoc --all --ri to generate documentation and it went on doing it successfully. Then I tried ri Array It shows following message : Nothing known about Array Therefore I ran... (0 Replies)
Discussion started by: upengan78
0 Replies

2. Shell Programming and Scripting

Parsing the Ruby File

Hai any one pls guide me... We can extract the line number of the sub routine/function/method in a Ruby file using the ctags command. But I want to know the line number in which the sub routine is ending. Example: Say the function get_days_in_hash starts in the line number 20. It... (2 Replies)
Discussion started by: thillai_selvan
2 Replies

3. Programming

Ubuntu ruby on rails

Hi, I am a php developer and I decided to learn ruby on rails. I have a few question. I have an ubuntu virtual machine with lamp. It mean that it has alrweady php and when I access the ip of the machine from my browser it does load the index.php. if I install ruby on rails will theere... (0 Replies)
Discussion started by: programAngel
0 Replies

4. UNIX for Advanced & Expert Users

Need help installing Puppet and Ruby..

Hi, I am working on RHEL 5.6 server, this is in private DMZ. No access to internet. I have downloaded the files I need to install the Puppet & Ruby. My goal is to install Puppet. I have downloaded.... mcollective-2.2.3-1.el5.noarch- SERVER.rpm ... (2 Replies)
Discussion started by: samnyc
2 Replies

5. Shell Programming and Scripting

Printf with backreference in ruby

Hello everybody, May you help with this, I don't know what is wrong. I want trying to print the first 4 characters as decimal and remove the "k's" from the next 7 characters. I'm trying with gsub and backrefence as shown below trying to remove the "k's" and then trying to assign to "x" the... (0 Replies)
Discussion started by: Ophiuchus
0 Replies

6. What is on Your Mind?

Ruby language

Hi All, Could you please suggest books for learning ruby and python language ? Thanks, Pravin (1 Reply)
Discussion started by: pravin27
1 Replies
Moose::Autobox::Code(3) 				User Contributed Perl Documentation				   Moose::Autobox::Code(3)

NAME
Moose::Autobox::Code - the Code role SYNOPOSIS
use Moose::Autobox; my $adder = sub { $_[0] + $_[1] }; my $add_2 = $adder->curry(2); $add_2->(2); # returns 4 # create a recursive subroutine # using the Y combinator *factorial = sub { my $f = shift; sub { my $n = shift; return 1 if $n < 2; return $n * $f->($n - 1); } }->y; factorial(10) # returns 3628800 DESCRIPTION
This is a role to describe operations on the Code type. METHODS
curry (@values) rcurry (@values) conjoin (&sub) disjoin (&sub) compose (@subs) This will take a list of @subs and compose them all into a single subroutine where the output of one sub will be the input of another. y This implements the Y combinator. u This implements the U combinator. meta SEE ALSO
<http://en.wikipedia.org/wiki/Fixed_point_combinator> http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/20469 <http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/20469> BUGS
All complex software has bugs lurking in it, and this module is no exception. If you find a bug please either email me, or add the bug to cpan-RT. AUTHOR
Stevan Little <stevan@iinteractive.com> COPYRIGHT AND LICENSE
Copyright 2006-2008 by Infinity Interactive, Inc. <http://www.iinteractive.com> This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. perl v5.16.2 2012-08-29 Moose::Autobox::Code(3)
All times are GMT -4. The time now is 05:16 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy