From 976fe910d3fa77909d847ab32e21c1627fed97ab Mon Sep 17 00:00:00 2001 From: "Juan J. Martinez" Date: Tue, 18 Jun 2024 16:05:47 +0100 Subject: Added last function --- examples/sentences.fco | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'examples/sentences.fco') 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") -- cgit v1.2.3