lots of small changes
This commit is contained in:
parent
c0c35839cc
commit
a5ecbf823f
85 changed files with 180 additions and 110 deletions
|
|
@ -11,7 +11,7 @@ type
|
|||
TMyEnum = enum
|
||||
meA, meB, meC, meD
|
||||
|
||||
when isMainModule:
|
||||
when true:
|
||||
{.hint: "this is the main file".}
|
||||
|
||||
proc fac[T](x: T): T =
|
||||
|
|
@ -84,5 +84,5 @@ for i in 2..6:
|
|||
for j in countdown(i+4, 2):
|
||||
echo(fac(i * j))
|
||||
|
||||
when isMainModule:
|
||||
when true:
|
||||
{.hint: "this is the main file".}
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
discard """
|
||||
output: '''
|
||||
start tradix.nim
|
||||
false
|
||||
false
|
||||
false
|
||||
|
|
@ -29,6 +30,8 @@ false
|
|||
## We use a radix tree with node compression.
|
||||
## There are two node kinds:
|
||||
|
||||
echo "start tradix.nim"
|
||||
|
||||
const BitsPerUnit = 8*sizeof(int)
|
||||
|
||||
type
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
discard """
|
||||
output: "done"
|
||||
output: "done tsortdev"
|
||||
"""
|
||||
|
||||
import algorithm, strutils
|
||||
|
|
@ -55,5 +55,4 @@ proc main() =
|
|||
for i in 0..1_000:
|
||||
main()
|
||||
|
||||
echo "done"
|
||||
|
||||
echo "done tsortdev"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue