카테고리 : 코드 요약보기전체보기목록닫기

1 2 3 4 5 6 7 8 9

disjoin

CL-USER> (defun disjoin (fn &rest fns)            (if (null fns)        ...

compose

CL-USER> (defun compose (&rest fns)            (destructuring-bind (fn1 . rest) (reverse fns) &n...

most

CL-USER> (defun most (fn lst)            (if (null lst)          &...

눈을 크게 떠야

CL-USER> (defun Adj* ()            (one-of '(nil (append (Adj) (Adj*))))) ADJ* CL-USER> (defun ...

무념한 문장 생성 예제

; SLIME: The Superior Lisp Interaction Mode for Emacs CL-USER> (defun sentence ()           ...

왜 안 돼

def time_formatter(lst, time='', format=['d','h','m','s']):   if lst == [] or format == []:     print time &nb...

시간 쪼개기

>>> def duration(d, m, s): ...     if m == []: ...             s.append...

finally를 쓰세요

제발 좀-_- 이게 뭡니까-_- try {   connection = SqlHelper.GetConnection();   ~~~~~~~   connection.Close(); } catch(Exception ex) {   if(connection != null) connection.Close()...

common error

습관 좀 잘 들이셈-_- if else if else if else if else if .. 하다가 왜. else는 안 쓰는건데-_-;; 하다못해 Unreachable 예외라도 만들어서 던지셈!! 그게 다 버그의 진원지인데-_- switch에 default 안 넣는 ㅊㅅ도 좀 맞아야 (...)

Dynamic Ruby

좋아요 웃흥~ 계속 가보자고~;
1 2 3 4 5 6 7 8 9