Recent Changes - Search:

Oktatás

* Programozás 1
  + feladatsor
  + GitHub oldal

* Szkriptnyelvek
  + feladatsor
  + quick link

Teaching

* Programming 1 (BI)
  ◇ exercises
  ◇ quick link

teaching assets


Félévek

* 2025/26/2
* archívum


Linkek

* kalendárium
   - munkaszüneti napok '20
* tételsorok
* jegyzetek
* szakdolgozat / PhD
* ösztöndíjak
* certificates
* C lang.
* C++
* C#
* Clojure
* D lang.
* Java
* Nim
* Nim2
* Scala


[ edit | logout ]
[ sandbox | passwd ]

Template

Here is my basic template file that I use when I start a new Nim project:

#!/usr/bin/env nimbang
#off:nimbang-args c -d:release
#off:nimbang-settings hideDebugInfo

import std/strutils    # strip, split, join
import std/strformat   # &"Hello {name}!"
import std/sequtils    # toSeq(iter), map, filter
# import std/math        # sum
# import std/algorithm   # sorted(seq), reversed(seq)
# import std/tables
# import std/sets

# import pykot
# import pykot/[console, converters, euler, fs, functional,
#               pretty, process, jrandom, strings, jsystem, types, web]

proc main() =
  echo "hello"

# ############################################################################

when isMainModule:
  main()

See this link for more info about nimbang.

The std/ prefix explicitly marks the module as part of Nim's standard library, which helps avoid ambiguity if you have a local module with the same name. The Nim standard library documentation and newer code consistently use this form. import strutils still works fine and won't break anything — it's just the older convention.

Cloud City

  

Blogjaim, hobbi projektjeim

* The Ubuntu Incident
* Python Adventures
* @GitHub
* heroku
* extra
* haladó Python
* YouTube listák


Debrecen | la France


[ edit ]

Edit - History - Print *** Report - Recent Changes - Search
Page last modified on 2026 March 29, 20:08