lists.nim 652 B

1234567891011121314151617181920212223242526272829
  1. #
  2. #
  3. # The Nim Compiler
  4. # (c) Copyright 2012 Andreas Rumpf
  5. #
  6. # See the file "copying.txt", included in this
  7. # distribution, for details about the copyright.
  8. #
  9. # This module is deprecated, don't use it.
  10. # TODO Remove this
  11. import os
  12. static:
  13. echo "WARNING: imported deprecated module compiler/lists.nim, use seq ore lists from the standard library"
  14. proc appendStr*(list: var seq[string]; data: string) {.deprecated.} =
  15. # just use system.add
  16. list.add(data)
  17. proc includeStr(list: var seq[string]; data: string): bool {.deprecated.} =
  18. if list.contains(data):
  19. result = true
  20. else:
  21. result = false
  22. list.add data