]> gitweb.factorcode.org Git - factor.git/blobdiff - core/combinators/combinators-docs.factor
docs: fix lint errors.
[factor.git] / core / combinators / combinators-docs.factor
index 38e90aa49447c2ccfbe33245a0f4af9bb05e13b0..404d31bb56cc37c49777bace18889388329cf48b 100644 (file)
@@ -89,6 +89,7 @@ ARTICLE: "compositional-examples" "Examples of compositional combinator usage"
 { $code ": subtract-n ( seq n -- seq' ) swap [ over - ] map nip ;" }
 "Three shuffle words are required to pass the value around. Instead, the loop-invariant value can be partially applied to a quotation using " { $link curry } ", yielding a new quotation that is passed to " { $link map } ":"
 { $example
+  "USING: sequences prettyprint ;"
   ": subtract-n ( seq n -- seq' ) [ - ] curry map ;"
   "{ 10 20 30 } 5 subtract-n ."
   "{ 5 15 25 }"