]> gitweb.factorcode.org Git - factor.git/commitdiff
websites.factorcode: use change-file-lines in example
authorJohn Benediktsson <mrjbq7@gmail.com>
Thu, 11 Apr 2024 19:41:14 +0000 (12:41 -0700)
committerJohn Benediktsson <mrjbq7@gmail.com>
Thu, 11 Apr 2024 19:41:34 +0000 (12:41 -0700)
extra/websites/factorcode/examples.txt

index 72a7f1b1ef4b9de6daa55bb4bc1507a11b1d96d0..5343226edcb60e6ac1b78d6826f9efbb4e72bc83 100644 (file)
@@ -33,14 +33,12 @@ USING: accessors smtp ;
     "At Tracy's." >>body
 send-email
 ----
-USING: io.files io.encodings.utf8 kernel
-sequences splitting ;
+USING: io.encodings.utf8 io.files sequences
+splitting ;
 
 "table.txt" utf8 [
-    file-lines
     [ "|" split ] map flip [ "|" join ] map
-] 2keep
-set-file-lines
+] change-file-lines
 ----
 USING: sequences xml.syntax xml.writer ;