Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

8
  • \$\begingroup\$ lib/math has a prime? function which is still a valid answer. \$\endgroup\$ Commented Feb 1, 2022 at 13:21
  • \$\begingroup\$ @Razetime yes, was already covered by another answer. \$\endgroup\$ Commented Feb 1, 2022 at 13:22
  • \$\begingroup\$ also you can remove all the end of line closing parens \$\endgroup\$ Commented Feb 1, 2022 at 13:24
  • \$\begingroup\$ @Razetime Ah, thanks for that. \$\endgroup\$ Commented Feb 1, 2022 at 13:25
  • 1
    \$\begingroup\$ Sadly, there are no default arguments in tinylisp (unless you use a variadic function and check the number of arguments by hand, which almost certainly costs more bytes). You may be interested in the related language Appleseed, which does support default arguments. \$\endgroup\$ Commented Feb 1, 2022 at 18:53