aboutsummaryrefslogtreecommitdiff
path: root/stdlib/source/library/lux/target/python.lux
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--stdlib/source/library/lux/target/python.lux20
1 files changed, 10 insertions, 10 deletions
diff --git a/stdlib/source/library/lux/target/python.lux b/stdlib/source/library/lux/target/python.lux
index 55d0eecea..6b578ada2 100644
--- a/stdlib/source/library/lux/target/python.lux
+++ b/stdlib/source/library/lux/target/python.lux
@@ -45,7 +45,7 @@
(java/lang/String::replace (:as java/lang/CharSequence text.new_line)
(:as java/lang/CharSequence nested_new_line)))}
(|>> (format text.new_line)
- (text.replace_all text.new_line nested_new_line)))))
+ (text.replaced text.new_line nested_new_line)))))
(abstract: .public (Code brand)
{}
@@ -148,14 +148,14 @@
[f.not_a_number? "nan"]
))
- ## else
+ ... else
[%.frac])
:abstraction)))
(def: safe
(-> Text Text)
(`` (|>> (~~ (template [<find> <replace>]
- [(text.replace_all <find> <replace>)]
+ [(text.replaced <find> <replace>)]
["\" "\\"]
[text.tab "\t"]
@@ -188,7 +188,7 @@
(-> (List a) Literal)))
(function (_ entries)
(<| :abstraction
- ## ..expression
+ ... ..expression
(format left_delimiter
(|> entries
(list\map entry_serializer)
@@ -207,13 +207,13 @@
(def: .public (slice from to list)
(-> (Expression Any) (Expression Any) (Expression Any) Access)
(<| :abstraction
- ## ..expression
+ ... ..expression
(format (:representation list) "[" (:representation from) ":" (:representation to) "]")))
(def: .public (slice_from from list)
(-> (Expression Any) (Expression Any) Access)
(<| :abstraction
- ## ..expression
+ ... ..expression
(format (:representation list) "[" (:representation from) ":]")))
(def: .public dict
@@ -223,7 +223,7 @@
(def: .public (apply/* func args)
(-> (Expression Any) (List (Expression Any)) (Computation Any))
(<| :abstraction
- ## ..expression
+ ... ..expression
(format (:representation func) "(" (text.join_with ", " (list\map ..code args)) ")")))
(template [<name> <brand> <prefix>]
@@ -239,7 +239,7 @@
[(def: .public (<name> args extra func)
(-> (List (Expression Any)) (Expression Any) (Expression Any) (Computation Any))
(<| :abstraction
- ## ..expression
+ ... ..expression
(format (:representation func)
(format "(" (|> args
(list\map (function (_ arg) (format (:representation arg) ", ")))
@@ -312,7 +312,7 @@
[(def: .public (<name> subject)
(-> (Expression Any) (Computation Any))
(<| :abstraction
- ## ..expression
+ ... ..expression
(format <unary> " " (:representation subject))))]
[not "not"]
@@ -465,7 +465,7 @@
(list\map (|>> %.nat code.local_identifier))))))
(syntax: (arity_types {arity <code>.nat})
- (in (list.repeat arity (` (Expression Any)))))
+ (in (list.repeated arity (` (Expression Any)))))
(template [<arity> <function>+]
[(with_expansions [<apply> (template.identifier ["apply/" <arity>])