prelude.rst 483 B

123456789101112131415161718192021222324252627282930
  1. Prelude
  2. =======
  3. This is an include file that simply imports common modules for your convenience:
  4. .. code-block:: nim
  5. include prelude
  6. Same as:
  7. .. code-block:: nim
  8. import os, strutils, times, parseutils, parseopt, hashes, tables, sets
  9. Examples
  10. ========
  11. Get the basic most common imports ready to start coding using ``prelude``:
  12. .. code-block:: nim
  13. include prelude
  14. echo now()
  15. echo getCurrentDir()
  16. echo "Hello $1".format("World")
  17. See also:
  18. - `Sugar <sugar.html>`_