tdot4.nim 574 B

1234567891011121314151617
  1. discard """
  2. $nimsuggest --tester --maxresults:2 $file
  3. >sug $1
  4. sug;;skProc;;tdot4.main;;proc (inp: string): string;;$file;;10;;5;;"";;100;;None
  5. sug;;skProc;;strutils.replace;;proc (s: string, sub: string, by: string): string{.noSideEffect, gcsafe, locks: 0.};;$lib/pure/strutils.nim;;1497;;5;;"Replaces `sub` in `s` by the string `by`.";;100;;None
  6. """
  7. import strutils
  8. proc main(inp: string): string =
  9. # use replace here and see if it occurs in the result, it should gain
  10. # priority:
  11. result = inp.replace(" ", "a").replace("b", "c")
  12. echo "string literal here".#[!]#