锘??xml version="1.0" encoding="utf-8" standalone="yes"?>毛片av中文字幕一区二区,亚洲日本免费电影,亚洲精品乱码久久久久久按摩观http://m.shnenglu.com/varg-vikernes/category/17616.htmlzh-cnMon, 22 Aug 2011 04:45:43 GMTMon, 22 Aug 2011 04:45:43 GMT60lisp let,let*http://m.shnenglu.com/varg-vikernes/archive/2011/08/22/154059.html緋背緋背Mon, 22 Aug 2011 03:50:00 GMThttp://m.shnenglu.com/varg-vikernes/archive/2011/08/22/154059.htmlhttp://m.shnenglu.com/varg-vikernes/comments/154059.htmlhttp://m.shnenglu.com/varg-vikernes/archive/2011/08/22/154059.html#Feedback0http://m.shnenglu.com/varg-vikernes/comments/commentRss/154059.htmlhttp://m.shnenglu.com/varg-vikernes/services/trackbacks/154059.html
let and let* create new variable bindings and execute a series of forms that use these bindings. 
let performs the bindings in parallel and let* does them sequentially.

The form

(let ((var1 init-form-1)
(var2 init-form-2)
...
(varm init-form-m))
declaration1
declaration2
...
declarationp
form1
form2
...
formn)

first evaluates the expressions init-form-1, init-form-2, and so on, in that order, saving the resulting values.
Then all of the variables varj are bound to the corresponding values;
each binding is lexical unless there is a special declaration to the contrary.
The expressions formk are then evaluated in order; the values of all but the last are discarded
(that is, the body of a let is an implicit progn).
let* is similar to let, but the bindings of variables are performed sequentially rather than in parallel.
The expression for the init-form of a var can refer to vars previously bound in the let*.

The form

(let* ((var1 init-form-1)
(var2 init-form-2)
...
(varm init-form-m))
declaration1
declaration2
...
declarationp
form1
form2
...
formn)
first evaluates the expression init-form-1, then binds the variable var1 to that value;
then it evaluates init-form-2 and binds var2, and so on.
The expressions formj are then evaluated in order;
the values of all but the last are discarded (that is, the body of let* is an implicit progn).

For both let and let*, if there is not an init-form associated with a var, var is initialized to nil.

The special form let has the property that the scope of the name binding does not include any initial value form.
For let*, a variable's scope also includes the remaining initial value forms for subsequent variable bindings.


Examples:

(setq a 'top) => TOP
(defun dummy-function () a) => DUMMY-FUNCTION
(let ((a 'inside) (b a))
(format nil "~S ~S ~S" a b (dummy-function))) => "INSIDE TOP TOP"
(let* ((a 'inside) (b a))
(format nil "~S ~S ~S" a b (dummy-function))) => "INSIDE INSIDE TOP"
(let ((a 'inside) (b a))
(declare (special a))
(format nil "~S ~S ~S" a b (dummy-function))) => "INSIDE TOP INSIDE"


緋背 2011-08-22 11:50 鍙戣〃璇勮
]]>
lisp loop,dotimes,dolist,dohttp://m.shnenglu.com/varg-vikernes/archive/2011/08/22/154055.html緋背緋背Mon, 22 Aug 2011 03:05:00 GMThttp://m.shnenglu.com/varg-vikernes/archive/2011/08/22/154055.htmlhttp://m.shnenglu.com/varg-vikernes/comments/154055.htmlhttp://m.shnenglu.com/varg-vikernes/archive/2011/08/22/154055.html#Feedback0http://m.shnenglu.com/varg-vikernes/comments/commentRss/154055.htmlhttp://m.shnenglu.com/varg-vikernes/services/trackbacks/154055.html

Simple LOOP loops forever...

? (loop
    (print "Look, I'm looping!"))
"Look, I'm looping!" 
"Look, I'm looping!" 
"Look, I'm looping!" 
"Look, I'm looping!" 
"Look, I'm looping!" 
"Look, I'm looping!" 
"Look, I'm looping!" 
"Look, I'm looping!" 
... and so on, until you interrupt execution... 
Aborted
? 

? (let ((n 0))
    (loop
      (when (> n 10) (return))
      (print n) (prin1 (* n n))
      (incf n)))
0 0
1 1
2 4
3 9
4 16
5 25
6 36
7 49
8 64
9 81
10 100
NIL
?


Use DOTIMES for a counted loop

? (dotimes (n 11)
    (print n) (prin1 (* n n)))
0 0
1 1
2 4
3 9
4 16
5 25
6 36
7 49
8 64
9 81
10 100
NIL
?


Use DOLIST to process elements of a list

? (dolist (item '(1 2 4 5 9 17 25))
    (format t "~&~D is~:[n't~;~] a perfect square.~%" item (integerp (sqrt item))))
1 is a perfect square.
2 isn't a perfect square.
4 is a perfect square.
5 isn't a perfect square.
9 is a perfect square.
17 isn't a perfect square.
25 is a perfect square.
NIL


? (dolist (item `(1 foo "Hello" 79.3 2/3 ,#'abs))
    (format t "~&~S is a ~A~%" item (type-of item)))
1 is a FIXNUM
FOO is a SYMBOL
"Hello" is a (SIMPLE-BASE-STRING 5)
79.3 is a DOUBLE-FLOAT
2/3 is a RATIO
#<Compiled-function ABS #x1E9CC3E> is a FUNCTION
NIL
? 

DO is tricky, but powerful

? (do ((which 1 (1+ which))
       (list '(foo bar baz qux) (rest list)))
      ((null list) 'done)
    (format t "~&Item ~D is ~S.~%" which (first list)))
Item 1 is FOO.
Item 2 is BAR.
Item 3 is BAZ.
Item 4 is QUX.
DONE
? 
(do ((var1 init1 step1)
     (var2 init2 step2)
     ...)
    (end-test result)
  statement1
  ...)

var1       = which
init1      = 1
step1      = (1+ which)
var2       = list
init2      = '(foo bar baz qux)
step2      = (rest list)
end-test   = (null list)
result     = 'done
statement1 = (format t "~&Item ~D is ~S.~%" which (first list))





緋背 2011-08-22 11:05 鍙戣〃璇勮
]]>
lisp find find-if find-if-nothttp://m.shnenglu.com/varg-vikernes/archive/2011/08/19/153887.html緋背緋背Fri, 19 Aug 2011 14:04:00 GMThttp://m.shnenglu.com/varg-vikernes/archive/2011/08/19/153887.htmlhttp://m.shnenglu.com/varg-vikernes/comments/153887.htmlhttp://m.shnenglu.com/varg-vikernes/archive/2011/08/19/153887.html#Feedback0http://m.shnenglu.com/varg-vikernes/comments/commentRss/153887.htmlhttp://m.shnenglu.com/varg-vikernes/services/trackbacks/153887.html

find item sequence &key from-end test test-not start end key => element

find-if predicate sequence &key from-end start end key => element

find-if-not predicate sequence &key from-end start end key => element

Arguments and Values:

item---an object.

sequence---a proper sequence.

predicate---a designator for a function of one argument that returns a generalized boolean.
鎺ュ彈涓涓弬鏁扮殑鍑芥暟錛岃繑鍥瀊oolean

from-end---a generalized boolean. The default is false.
boolean綾誨瀷錛岄粯璁や負false

test---a designator for a function of two arguments that returns a generalized boolean.
鎺ュ彈涓や釜鍙傛暟鐨勫嚱鏁幫紝榪斿洖boolean

test-not---a designator for a function of two arguments that returns a generalized boolean.
鎺ュ彈涓や釜鍙傛暟鐨勫嚱鏁幫紝榪斿洖boolean

startend---bounding index designators of sequence. The defaults for start and end are 0 and nil, respectively.

key---a designator for a function of one argument, or nil.

element---an element of the sequence, or nil.

findfind-if, and find-if-not each search for an element of the sequence bounded by start and end that satisfies the predicate predicate or that satisfies the test test or test-not, as appropriate.

If from-end is true, then the result is the rightmost element that satisfies the test.

If the sequence contains an element that satisfies the test, then the leftmost or rightmost sequence element, depending on from-end, is returned; otherwise nil is returned.


Examples:

Examples:
(find #\d "here are some letters that can be looked at" :test #'char>)
=> #\Space
(find-if #'oddp '(1 2 3 4 5) :end 3 :from-end t) => 3
(find-if-not #'complexp '#(3.5 2 #C(1.0 0.0) #C(0.0 1.0)) :start 2) => NIL


緋背 2011-08-19 22:04 鍙戣〃璇勮
]]>
lisp MAPC, MAPCAR, MAPCAN, MAPL, MAPLIST, MAPCONhttp://m.shnenglu.com/varg-vikernes/archive/2011/08/19/153861.html緋背緋背Fri, 19 Aug 2011 13:44:00 GMThttp://m.shnenglu.com/varg-vikernes/archive/2011/08/19/153861.htmlhttp://m.shnenglu.com/varg-vikernes/comments/153861.htmlhttp://m.shnenglu.com/varg-vikernes/archive/2011/08/19/153861.html#Feedback0http://m.shnenglu.com/varg-vikernes/comments/commentRss/153861.htmlhttp://m.shnenglu.com/varg-vikernes/services/trackbacks/153861.html

mapc function &rest lists+ => list-1

mapcar function &rest lists+ => result-list

mapcan function &rest lists+ => concatenated-results

mapl function &rest lists+ => list-1

maplist function &rest lists+ => result-list

mapcon function &rest lists+ => concatenated-results

mapcar operates on successive elements of the listsfunction is applied to the first element of each list, then to the second element of each list, and so on. The iteration terminates when the shortest list runs out, and excess elements in other lists are ignored. The value returned by mapcar is a list of the results of successive calls to function.

mapcar 棣栧厛灝嗗嚱鏁癮pply鍒版瘡涓垪琛ㄧ殑絎竴涓厓绱狅紝鍐嶅皢鍑芥暟apply鍒版瘡涓垪琛ㄧ殑絎簩涓厓绱犮傘?br />涓鐩村埌鏈鐭殑鍒楄〃鐨勬渶鍚庝竴涓厓绱犮傚墿涓嬬殑鍏冪礌灝嗚蹇界暐銆?br />瀹冪殑緇撴灉鏄繑鍥炲間笉涓簄il鐨勯泦鍚堛?/em>

mapc is like mapcar except that the results of applying function are not accumulated. The list argument is returned.

mapc 鍜?mapcar 綾諱技銆備笉榪囪繑鍥炵殑鏄涓涓垪琛ㄣ?/div>

maplist is like mapcar except that function is applied to successive sublists of the listsfunction is first applied to the lists themselves, and then to the cdr of each list, and then to the cdr of the cdr of each list, and so on.

maplist 鍜?mapcar 綾諱技錛屼笉榪囬鍏堝皢鍑芥暟apply鍒版瘡涓垪琛紝鐒跺悗灝嗗嚱鏁癮pply鍒版瘡涓垪琛ㄧ殑cdr錛岀劧鍚庡皢鍑芥暟apply鍒版瘡涓垪琛ㄧ殑cddr銆傘?br />鐩村埌鏈鐭殑涓涓垪琛ㄤ負絀轟負姝€?/div>

mapl is like maplist except that the results of applying function are not accumulated; list-1 is returned.

mapl鍜宮aplist綾諱技錛屼絾鏄繑鍥炵殑鏄涓涓垪琛ㄣ?/div>

mapcan and mapcon are like mapcar and maplist respectively, except that the results of applying function are combined into a list by the use of nconc rather than list. That is,

mapcan 鍜?mapcon 綾諱技浜?mapcar 鍜?maplist銆傚畠浠嬌鐢?nconc 榪炴帴緇撴灉鑰屼笉鏄?list銆?br />
Examples
(mapcar #'car '((1 a) (2 b) (3 c))) =>  (1 2 3)   
(mapcar #'abs '(3 -4 2 -5 -6)) => (3 4 2 5 6)
(mapcar #'cons '(a b c) '(1 2 3)) => ((A . 1) (B . 2) (C . 3))

(maplist #'append '(1 2 3 4) '(1 2) '(1 2 3))  =>  ((1 2 3 4 1 2 1 2 3) (2 3 4 2 2 3)) 
(maplist #'(lambda (x) (cons 'foo x)) '(a b c d)) => ((FOO A B C D) (FOO B C D) (FOO C D) (FOO D))
(maplist #'(lambda (x) (if (member (car x) (cdr x)) 0 1)) '(a b a c d b c)) => (0 0 1 0 1 1 1)
(setq dummy nil) =>  NIL   
(mapc #'(lambda (&rest x) (setq dummy (append dummy x)))
'(1 2 3 4)
'(a b c d e)
'(x y z)) => (1 2 3 4)
dummy => (1 A X 2 B Y 3 C Z)

(setq dummy nil) =>  NIL   
(mapl #'(lambda (x) (push x dummy)) '(1 2 3 4)) => (1 2 3 4)
dummy => ((4) (3 4) (2 3 4) (1 2 3 4))

(mapcan #'(lambda (x y) (if (null x) nil (list x y)))
'(nil nil nil d e)
'(1 2 3 4 5 6)) => (D 4 E 5)
(mapcan #'(lambda (x) (and (numberp x) (list x)))
'(a 1 b c 3 4 d 5)) => (1 3 4 5)

(mapcon #'list '(1 2 3 4)) =>  ((1 2 3 4) (2 3 4) (3 4) (4))  



 



緋背 2011-08-19 21:44 鍙戣〃璇勮
]]> 青青草原综合久久大伊人导航_色综合久久天天综合_日日噜噜夜夜狠狠久久丁香五月_热久久这里只有精品
  • <ins id="pjuwb"></ins>
    <blockquote id="pjuwb"><pre id="pjuwb"></pre></blockquote>
      <noscript id="pjuwb"></noscript>
            <sup id="pjuwb"><pre id="pjuwb"></pre></sup>
              <dd id="pjuwb"></dd>
              <abbr id="pjuwb"></abbr>
              久久久精品日韩| 欧美主播一区二区三区| 国内精品视频久久| 欧美日韩精品欧美日韩精品一| 久色成人在线| 亚洲欧洲av一区二区三区久久| 在线观看亚洲| 国产精品久久久一区麻豆最新章节| 久久蜜桃香蕉精品一区二区三区| 亚洲综合第一页| 亚洲一区二区三区视频| 亚洲男同1069视频| 欧美一区二区三区在线| 亚洲精品综合在线| aa级大片欧美三级| 亚洲一区精彩视频| 新狼窝色av性久久久久久| 欧美一区二区三区日韩视频| 亚洲一区精彩视频| 欧美一激情一区二区三区| 久久精品1区| 亚洲欧美成人| 亚洲精品一区二区在线| 日韩视频精品在线| 亚洲欧美欧美一区二区三区| 午夜亚洲激情| 久久在线91| 欧美日韩亚洲一区在线观看| 国产精品video| 国内外成人在线| 一区二区三区在线观看国产| 在线看国产日韩| a4yy欧美一区二区三区| 亚洲欧美日韩国产综合| 久久亚洲精品欧美| 99精品免费视频| 亚洲丰满在线| 亚洲新中文字幕| 久久综合网hezyo| 亚洲乱码国产乱码精品精98午夜| 99国产一区| 欧美亚洲视频在线观看| 欧美α欧美αv大片| 久久久久久高潮国产精品视| 欧美另类变人与禽xxxxx| 国产日韩av在线播放| 亚洲精品美女免费| 久久国产精品久久久久久久久久| 免费视频亚洲| 99视频精品在线| av不卡在线观看| 麻豆精品视频在线观看视频| 国产精品日韩欧美一区二区三区| 91久久精品国产91久久性色| 性做久久久久久久免费看| 欧美a级片网| 性欧美精品高清| 国产伪娘ts一区| 黄色亚洲网站| 亚洲三级影院| 久久久久九九视频| 最新日韩av| 99天天综合性| 亚洲欧美在线免费| 欧美在线一二三区| 老司机精品导航| 欧美久久久久中文字幕| 欧美精品一区视频| 国产日韩精品视频一区二区三区| 欧美亚洲免费在线| 亚洲福利视频一区| 亚洲免费视频在线观看| 久久久久www| 欧美激情影院| 黑人一区二区三区四区五区| 亚洲三级色网| 久久久蜜桃精品| 99热精品在线| 久久一区免费| 国产欧美精品久久| 亚洲精品视频在线| 亚洲精品小视频| 老司机精品久久| 亚洲性视频网址| 欧美日韩123| 精品不卡视频| 久久久国产精品一区二区三区| 亚洲裸体视频| 日韩亚洲成人av在线| 亚洲精品一区在线观看香蕉| 欧美一区三区二区在线观看| 欧美性色aⅴ视频一区日韩精品| 亚洲国产精品黑人久久久| 欧美一区二区视频在线观看| 一本色道88久久加勒比精品 | 欧美激情精品久久久六区热门| 亚洲一区二区三区四区五区黄 | 欧美视频在线观看免费网址| 亚洲高清免费| 免费成人美女女| 久久国产精品99国产| 国产日本亚洲高清| 欧美综合国产| 蜜桃久久精品乱码一区二区| 免费成人高清在线视频| 亚洲一区3d动漫同人无遮挡| 欧美色精品天天在线观看视频 | 亚洲中午字幕| 欧美精品成人一区二区在线观看 | 久久亚洲私人国产精品va| 国产色产综合产在线视频| 欧美在线免费观看视频| 亚洲剧情一区二区| 欧美在线91| 亚洲影院免费| 在线精品亚洲一区二区| 99精品久久免费看蜜臀剧情介绍| 欧美美女bb生活片| 久久久久五月天| 欧美人在线观看| 欧美成人中文字幕在线| 国产精品色婷婷| 亚洲乱码视频| 亚洲精品久久久久中文字幕欢迎你| 中文精品在线| 中国成人在线视频| 欧美成人免费va影院高清| 久久躁狠狠躁夜夜爽| 国产免费观看久久黄| 亚洲网站在线观看| 中日韩男男gay无套| 欧美精品九九99久久| 免费欧美在线| 在线看成人片| 美女脱光内衣内裤视频久久网站| 久久夜色精品国产| 国产一区清纯| 久久精品国产77777蜜臀| 久久本道综合色狠狠五月| 欧美午夜剧场| 亚洲视频视频在线| 香蕉成人久久| 国产人久久人人人人爽| 亚洲综合首页| 久久久久久婷| 在线日韩中文| 麻豆精品一区二区av白丝在线| 久热re这里精品视频在线6| 国外精品视频| 欧美不卡激情三级在线观看| 91久久精品久久国产性色也91| 一区二区亚洲| 欧美波霸影院| 中文久久乱码一区二区| 久久九九精品99国产精品| 好吊妞**欧美| 欧美国产在线观看| 在线视频精品| 久久综合久色欧美综合狠狠| 亚洲国产欧美一区二区三区同亚洲| 麻豆精品网站| 一区二区三区高清在线| 欧美伊人久久久久久午夜久久久久| 国产色爱av资源综合区| 一区二区日本视频| 欧美黄色免费| 亚洲精品免费看| 一本色道久久88综合日韩精品 | 欧美亚洲一区二区在线观看| 久久精品亚洲一区二区| 亚洲区免费影片| 国产精品久久久久久久久久免费| 亚洲综合色激情五月| 欧美激情成人在线| 午夜精品网站| 亚洲人成人77777线观看| 欧美日韩一区二区三| 久久激情久久| 日韩视频专区| 欧美福利精品| 久久黄色网页| 一区二区精品在线| 伊人久久噜噜噜躁狠狠躁 | 伊人精品视频| 欧美亚男人的天堂| 久久久久久久久久久久久9999 | 亚洲欧洲精品一区二区三区| 欧美影院精品一区| 一区二区三区蜜桃网| 很黄很黄激情成人| 国产精品久久网站| 欧美日韩精品三区| 久久尤物电影视频在线观看| 在线视频亚洲| 亚洲国产精品t66y| 蜜臀av在线播放一区二区三区| 欧美一区二区三区久久精品茉莉花| 亚洲精品看片| 亚洲国产精品999| 狠狠v欧美v日韩v亚洲ⅴ|