mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-10-21 07:03:11 -06:00
new tutorial example
This commit is contained in:
1 parent
a205829623
commit
6398140d0a
34 files changed
+940
-668
No files matched your search
@@ -0,0 +1,10 @@
|
||||
resource StringOper = {
|
||||
oper
|
||||
SS : Type = {s : Str} ;
|
||||
|
||||
ss : Str -> SS = \x -> {s = x} ;
|
||||
|
||||
cc : SS -> SS -> SS = \x,y -> ss (x.s ++ y.s) ;
|
||||
|
||||
prefix : Str -> SS -> SS = \p,x -> ss (p ++ x.s) ;
|
||||
}
|
||||
Reference in new issue
Block a user