본문 바로가기

관심있는 것들 정리

검색하기
관심있는 것들 정리
프로필사진 내공강화

  • 분류 전체보기 (210)
    • Network (1)
    • 이것저것 긁적긁적 (26)
    • programming (9)
      • gtk+ (6)
      • 암호 알고리즘 (4)
      • Android (1)
      • wxPython (2)
      • ActionScript (0)
      • Debugging (7)
      • Network (10)
      • Python (6)
      • Gnuplot (7)
      • common lisp (1)
      • Ruby (6)
      • Golang (9)
      • awk (4)
    • utility 사용법 (59)
      • vim (12)
      • expect (0)
      • emacs (33)
      • shell (2)
      • 그 외 (11)
    • 일본어 (1)
    • 게임 (1)
    • 음악 (4)
    • 프로토콜 (13)
      • BitTorrent (13)
Guestbook
Notice
Recent Posts
Recent Comments
Link
«   2025/08   »
일 월 화 수 목 금 토
1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
31
Tags
more
Archives
Today
Total
관리 메뉴
  • 글쓰기
  • 방명록
  • RSS
  • 관리

목록programming/common lisp (1)

관심있는 것들 정리

if 예제

common lisp 조건문 if 사용 예제 (if (= 5 (+ 2 3)) (format t "condition is true") (format t "condition is false")) condition is true NIL + 함수와 = 함수를 이용하여 출력 (if (zerop (mod 6 2)) (format t "6 is even number") (format t "6 is odd number")) 6 is even number NIL zerop 함수 : argument가 0이면 t 그렇지 않으면 nil 리턴 재미있게도 modulo 연산자로 많이 쓰이는 % 는 지원하지 않는다 (emacs lisp의 경우 지원함) 그 대신 mod 를 사용하면 된다.

programming/common lisp 2013. 5. 12. 21:53
이전 Prev 1 Next 다음

Blog is powered by kakao / Designed by Tistory

티스토리툴바