スレッド化された関数のいずれかが nil を返さない限り、「->」と同じように機能する「-?>」を探しています。スレッド化プロセスで nil に遭遇した場合、スレッド化式の戻り値は nil です。使える。
ここで私はこのことについての言及を見つけています。 http://clojuredocs.org/clojure_contrib/clojure.contrib.core/-_q%3E
上記サイトより
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
私はclojure 1.4を使用しています。
この機能には、何を、どこで、どのようにアクセスすればよいですか? ありがとうございました。