'Programming > lisp' 카테고리의 다른 글
| xlisp-plus 3.05 (0) | 2012.12.29 |
|---|---|
| lisp vector (0) | 2012.12.14 |
| lisp tutorial (0) | 2012.12.06 |
| lisp - #' 와 ' (0) | 2012.12.05 |
| 클로져 (0) | 2012.12.03 |
| xlisp-plus 3.05 (0) | 2012.12.29 |
|---|---|
| lisp vector (0) | 2012.12.14 |
| lisp tutorial (0) | 2012.12.06 |
| lisp - #' 와 ' (0) | 2012.12.05 |
| 클로져 (0) | 2012.12.03 |
| lisp vector (0) | 2012.12.14 |
|---|---|
| lisp atom (0) | 2012.12.11 |
| lisp - #' 와 ' (0) | 2012.12.05 |
| 클로져 (0) | 2012.12.03 |
| lisp는 리스트지 prefix 표기법이 아니다 (0) | 2012.11.19 |
| > (quote a)
A
> 'a
A
> '(a)
(A)
> (quote (a))
(A) >'(+ 1 2)
(+ 1 2)
|
APPLY is also a Lisp primitive function.
APPLY takes a function and a list of objects as input. It invokes the specified function with those objects as its inputs. The first argument to APPLY should be quoted with #’ rather than an ordinary quote; #’ is the proper way to quote functions supplied as inputs to other functions. This will be explained in more detail in Chapter 7.
(apply #'+ '(2 3)) ⇒ 5
(apply #’equal '(12 17)) ⇒ nil
|
| The #’ (or ‘‘sharp quote’’) notation is the correct way to quote a function in Common Lisp. If you want to see what the function CONS looks like in your implementation, try the following example in your Lisp:
> (setf fn #’cons)
#<Compiled-function CONS {6041410}>
> fn
#<Compiled-function CONS {6041410}>
> (type-of fn)
COMPILED-FUNCTION
> (funcall fn ’c ’d)
(C . D)
|
> #'+
#<SYSTEM-FUNCTION +>
> (function +)
#<SYSTEM-FUNCTION +>
|
| lisp atom (0) | 2012.12.11 |
|---|---|
| lisp tutorial (0) | 2012.12.06 |
| 클로져 (0) | 2012.12.03 |
| lisp는 리스트지 prefix 표기법이 아니다 (0) | 2012.11.19 |
| lisp 관련 책 (0) | 2012.01.25 |
| Example | Name | Effect |
|---|---|---|
| ++$a | Pre-increment | Increments $a by one, then returns $a. |
| $a++ | Post-increment | Returns $a, then increments $a by one. |
| --$a | Pre-decrement | Decrements $a by one, then returns $a. |
| $a-- | Post-decrement | Returns $a, then decrements $a by one. |
| php framework / 읽을꺼리 (0) | 2014.04.09 |
|---|---|
| php 메뉴얼 (0) | 2014.03.28 |
| php $_SERVER 변수 (0) | 2013.07.07 |
| index.php가 다운받아지는 문제점 -_- (0) | 2013.02.22 |
| php 간단정리 (0) | 2012.11.26 |
| lisp tutorial (0) | 2012.12.06 |
|---|---|
| lisp - #' 와 ' (0) | 2012.12.05 |
| lisp는 리스트지 prefix 표기법이 아니다 (0) | 2012.11.19 |
| lisp 관련 책 (0) | 2012.01.25 |
| lisp 문법 (0) | 2012.01.24 |
| wan 에서 mac address 얻기 (0) | 2013.07.09 |
|---|---|
| 축약주소 만들기 서비스 (0) | 2013.07.08 |
| php-mobile-detect (0) | 2013.02.23 |
| TD 태그 - Chrome 과 IE 차이? (0) | 2011.05.30 |
| IE8 / Chrome으로 HTML 분석하기 (2) | 2011.03.09 |
| php framework / 읽을꺼리 (0) | 2014.04.09 |
|---|---|
| php 메뉴얼 (0) | 2014.03.28 |
| php $_SERVER 변수 (0) | 2013.07.07 |
| index.php가 다운받아지는 문제점 -_- (0) | 2013.02.22 |
| php ++,-- 연산자 (0) | 2012.12.03 |
| lisp - #' 와 ' (0) | 2012.12.05 |
|---|---|
| 클로져 (0) | 2012.12.03 |
| lisp 관련 책 (0) | 2012.01.25 |
| lisp 문법 (0) | 2012.01.24 |
| slime / lispbox (0) | 2012.01.24 |
| sse / mmx 확장 (0) | 2012.10.09 |
|---|
/* The Intel API is flexible enough that we must allow aliasing with other vector types, and their scalar components. */ typedef int __m64 __attribute__ ((__vector_size__ (8), __may_alias__)); /* Internal data types for implementing the intrinsics. */ typedef int __v2si __attribute__ ((__vector_size__ (8))); typedef short __v4hi __attribute__ ((__vector_size__ (8))); typedef char __v8qi __attribute__ ((__vector_size__ (8))); typedef long long __v1di __attribute__ ((__vector_size__ (8))); typedef float __v2sf __attribute__ ((__vector_size__ (8)));
| #include <stdio.h>
#include <mmintrin.h>
void main()
{
__m64 m64val;
}
|
| mmx, sse intrinsics from MSDN.NET (0) | 2012.10.12 |
|---|