Skip to content

Commit 87ffe5d

Browse files
authored
Create searchin.wx
1 parent dff3d67 commit 87ffe5d

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

modules/std/syntax/funcs/searchin.wx

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
2+
Namespace std.syntax
3+
4+
#rem monkeydoc @pro @sugar SearchIn collections functions.
5+
@author iDkP from GagagePixel
6+
@since 2025-07-18
7+
#end
8+
Function SearchIn<K,V>:Int( map:Map<K,V>,key:K,values:Stack<V> )
9+
Return map.Search( key, values.Data )
10+
End
11+
12+
Function SearchIn<K,V>:Int( map:Map<K,V>,key:K,values:V[] )
13+
Return map.Search( key, values )
14+
End
15+
16+
Function SearchIn<K,V>:Int( map:Map<K,V>,key:K,values:List<V> )
17+
Return map.Search( key, values )
18+
End

0 commit comments

Comments
 (0)