2012-09-28 4 views
3

"->>", 스레드 된 함수 중 하나가 nil을 반환하지 않는 한 "->"와 동일하게 작동합니다. 스레딩 프로세스에서 nil이 발생하면 스레딩 표현식의 반환 값은 nil입니다. 유능한."-?>"어디로 갔습니까?

여기 내가이 문제에 대한 언급을 찾고 있습니다. 사이트

Same as clojure.core/-> but returns nil as soon as the threaded value is nil itself (thus short-circuiting any pending computation). 
Examples : 
(-?> "foo" .toUpperCase (.substring 1)) returns "OO" 
(-?> nil .toUpperCase (.substring 1)) returns nil 

위에서 http://clojuredocs.org/clojure_contrib/clojure.contrib.core/-_q%3E

나는 Clojure에서 1.4입니다.

이 기능에 대한 액세스 권한은 무엇입니까? 고맙습니다.

답변

관련 문제