Back to docs home - Back to libs

negate_id.dots

Purpose

Since there is no way to set a dot’s id to a negative number directly, this librairy is a shortcut to changes the id of a dot to its opposite.

Usage

 T
L+R
 B
Parameters
Example
%!negate_id.dots n

.---@7--n--$@--\
               |
               n
     /--$@-&   |
     n         $
     |         @
     \-@$--n---/
Output
-7
7
-7
7

Source

The source code is availaible here . If something doesn’t work, do not hesitate to open an issue.

Back to docs home - Back to libs