master > master: codego - cleanup
This commit is contained in:
@@ -8,13 +8,28 @@ import (
|
||||
* METHOD: Atoms
|
||||
* ---------------------------------------------------------------- */
|
||||
|
||||
func Atoms(tree formulae.Formula) []string {
|
||||
func Atoms(fml formulae.Formula) []string {
|
||||
// Definiere Schema:
|
||||
var schema = func(tree formulae.Formula, prevValues [][]string) []string {
|
||||
var schema = func(fml formulae.Formula, prevValues [][]string) []string {
|
||||
// Herausforderung: schreibe diese Funktion!
|
||||
return []string{}
|
||||
}
|
||||
// Erzeuge Funktion aus Schema und berechne Wert:
|
||||
fn := formulae.CreateFromSchemeStringsValued(schema)
|
||||
return fn(tree)
|
||||
return fn(fml)
|
||||
}
|
||||
|
||||
/* ---------------------------------------------------------------- *
|
||||
* METHOD: Subformulae
|
||||
* ---------------------------------------------------------------- */
|
||||
|
||||
func Subformulae(fml formulae.Formula) []string {
|
||||
// Definiere Schema:
|
||||
var schema = func(fml formulae.Formula, prevValues [][]string) []string {
|
||||
// Herausforderung: schreibe diese Funktion!
|
||||
return []string{}
|
||||
}
|
||||
// Erzeuge Funktion aus Schema und berechne Wert:
|
||||
fn := formulae.CreateFromSchemeStringsValued(schema)
|
||||
return fn(fml)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user