aboutsummaryrefslogtreecommitdiff
path: root/test/lists.tm
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2025-04-21 14:54:23 -0400
committerBruce Hill <bruce@bruce-hill.com>2025-04-21 14:54:23 -0400
commitaa5578ffe8fb2a9e6d24b0077f5d7ced630b7dfa (patch)
tree2749ac2aa1a2f91bbb0b4e72bc17b29f204e57cc /test/lists.tm
parent6ee5af0a16a5f1a32eb933e30d8b86ff4e691beb (diff)
Rename List.first() to List.where()
Diffstat (limited to 'test/lists.tm')
-rw-r--r--test/lists.tm4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/lists.tm b/test/lists.tm
index 71e107ef..6281532c 100644
--- a/test/lists.tm
+++ b/test/lists.tm
@@ -168,9 +168,9 @@ func main()
>> ["a", "b", "c"].find("XXX")
= none
- >> [10, 20].first(func(i:&Int) i.is_prime())
+ >> [10, 20].where(func(i:&Int) i.is_prime())
= none
- >> [4, 5, 6].first(func(i:&Int) i.is_prime())
+ >> [4, 5, 6].where(func(i:&Int) i.is_prime())
= 2?
do