compute-constrained-bayes/jit_bayes.nim

21 lines
426 B
Nim
Raw Normal View History

2023-05-23 00:19:04 +00:00
import strutils
import sequtils
import bigints # type: BigInt
# let x = initBigInt("810896098877923596128062174904361421866219158")
let file_path = "./data/stripped"
let f = open(file_path)
var line : string
var i = 0
while f.read_line(line):
if i > 3:
let arr = split(line, ",")
let l = arr.len
let nums = arr[1..(l-2)] # .map(proc (x: string): BigInt = initBigInt(x))
# echo nums
i = i + 1
f.close()