Issue #6242 has been updated by huma10 (huma mustqeem).


jamesw (James  Owen) wrote:
> even i guess so  Ruby is a LISP 
> 
> http://www.leatherfads.com/leather-jacket.aspx

Yes agree with you
https://leatherbaba.com/genuine-leather-motorcycle-jacket

----------------------------------------
Feature #6242: Ruby should support lists
https://bugs.ruby-lang.org/issues/6242#change-70002

* Author: shugo (Shugo Maeda)
* Status: Rejected
* Priority: Normal
* Assignee: 
* Target version: 2.0.0
----------------------------------------
I've heard that Ruby is a LISP.
LISP stands for "LISt Processing."
Hence, Ruby should support lists.

I've attached a patch to add the classes List and Cons, and the cons operator `:::'.

Example:

  >> S[1,2,3].inject(:+)
  => 6
  >> S[1,2,3]
  => S[1, 2, 3]
  >> 0 ::: S[1,2,3]
  => S[0, 1, 2, 3]
  >> 0 ::: 1 ::: 2 ::: 3 ::: nil
  => S[0, 1, 2, 3]
  >> S[1,2,3].inject(:+)
  => 6


---Files--------------------------------
list.diff (9.61 KB)
list2.diff (9.61 KB)
list3.diff (14 KB)
noname (500 Bytes)
noname (500 Bytes)
jaro-1.jpg (12.3 KB)


-- 
https://bugs.ruby-lang.org/

Unsubscribe: <mailto:ruby-core-request / ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>