aboutsummaryrefslogtreecommitdiff
path: root/examples/sentences.fco
diff options
context:
space:
mode:
authorJuan J. Martinez <jjm@usebox.net>2024-06-18 16:05:47 +0100
committerJuan J. Martinez <jjm@usebox.net>2024-06-18 16:05:47 +0100
commit976fe910d3fa77909d847ab32e21c1627fed97ab (patch)
tree38c955905647605c35c5e2b117c3639dbbf8c4be /examples/sentences.fco
parent6567df27bb924d17a41b21ac012d88bfee4cbe34 (diff)
downloadfunco-976fe910d3fa77909d847ab32e21c1627fed97ab.tar.gz
funco-976fe910d3fa77909d847ab32e21c1627fed97ab.zip
Added last function
Diffstat (limited to 'examples/sentences.fco')
-rw-r--r--examples/sentences.fco2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/sentences.fco b/examples/sentences.fco
index 6b6e448..91aa3bd 100644
--- a/examples/sentences.fco
+++ b/examples/sentences.fco
@@ -3,7 +3,7 @@
def classify(xs)
def sentence_type(s)
def ends_with?(s c)
- =([](s -(size(s) 1)) c)
+ =(last(s) c)
end
if ends_with?(s "?")
+(s " -> Q")