From 4c81a6395b9efe164852464335b62d7fa452cf99 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A1s=20B=20Nagy?= <20251272+BNAndras@users.noreply.github.com> Date: Sun, 8 Dec 2024 13:55:04 -0800 Subject: [PATCH] Add type annotation to function signatures --- exercises/practice/strain/.meta/src/example.art | 4 ++-- exercises/practice/strain/src/strain.art | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/exercises/practice/strain/.meta/src/example.art b/exercises/practice/strain/.meta/src/example.art index a775b29..29e54dd 100644 --- a/exercises/practice/strain/.meta/src/example.art +++ b/exercises/practice/strain/.meta/src/example.art @@ -1,4 +1,4 @@ -keep: function [values fn][ +keep: function [values :block fn :literal :function][ fold.seed:[] values [acc value] [ print value switch call var 'fn @[value] -> insert acc size acc value @@ -6,7 +6,7 @@ keep: function [values fn][ ] ] -discard: function [values fn][ +discard: function [values :block fn :literal :function][ fold.seed:[] values [acc value][ switch not? call var 'fn @[value] -> insert acc size acc value -> acc diff --git a/exercises/practice/strain/src/strain.art b/exercises/practice/strain/src/strain.art index 139a275..b29001c 100644 --- a/exercises/practice/strain/src/strain.art +++ b/exercises/practice/strain/src/strain.art @@ -1,7 +1,7 @@ -keep: function [values fn][ +keep: function [values :block fn :literal :function][ panic "Please implement the keep function" ] -discard: function [values fn][ +discard: function [values :block fn :literal :function][ panic "Please implement the discard function" -] +] \ No newline at end of file