mirror of
https://codeberg.org/scip/gfn.git
synced 2025-12-16 18:30:57 +01:00
program works now, added a little documentation
This commit is contained in:
@@ -14,12 +14,12 @@ func Generate(count int, code string) ([]string, error) {
|
||||
|
||||
gen, err := fn.Compile(code, fn.Collapse(true))
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("Could not compile FN code:", err)
|
||||
return nil, fmt.Errorf("could not compile FN code: %w", err)
|
||||
}
|
||||
|
||||
for i := 0; i < count; i++ {
|
||||
name := gen.String()
|
||||
if !exists(reg, name) {
|
||||
if !Exists(reg, name) {
|
||||
reg[name] = 1
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user