Newsgroups: gnu.emacs.help, comp.lang.lisp, comp.emacs, gnu.emacs, comp.lang.scheme
From: Swami Tota Ram Shankar <tota_...@india.com>
Date: Sun, 21 Aug 2011 01:19:20 -0700 (PDT)
Local: Sun, Aug 21 2011 4:19 am
Subject: Nested mapcar* application and possibly some variation of Y combinator
Dear elispWizards,
Consider the following command to halve every element in a vector or a (mapcar* '(lambda(x) (* 0.5 x)) '[1 2 3 4 5 6 7] ) ---> (0.5 1.0 Now, I intend to vary it so that it operated like this on a singly (mapcar* '(lambda(x) (* 0.5 x)) '[[1 2 3] [4 5 6 7]] ) ---> It would be nice if this can be accomplished without opening the I could not put the mapcar* inside the lambda ... maybe made some However, I am inspired by this approach for factorial which I picked ( However, I picked up this line also and I cant understand it at all as ( (lambda(f) ((lambda (Y) (f (Y Y))) (lambda (Y) (f (Y Y))))) Hopefully, these may inspire you along the lines, I am having some Swami Tota Ram Shankar You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||