blob: a527500e1fa3f389872baf758f21c1ef147d0ec5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
resource prologResource = {
oper
app : Str -> Str -> Str =
\pred -> \arg ->
pred ++ "(" ++ arg ++ ")" ;
appHakeOne : Str -> Str =
\arg ->
"["++ arg ++ "]" ;
oper
--with single quotes
--app2 : Str -> Str -> Str -> Str = \pred -> \argH -> \argM -> pred ++ "(" ++ "'" ++ argH ++ ":" ++ argM ++ "'" ++ ")" ;
--without single quotes
--app2 : Str -> Str -> Str -> Str = \pred -> \argH -> \argM -> pred ++ "(" ++ argH ++ ":" ++ argM ++ ")" ;
app3 : Str -> Str -> Str = \argH -> \argM -> argH ++ ":" ++ argM ;
}
|