Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit3f667b5

Browse files
PatrickMcDonalddsyme
authored andcommitted
Remove unused mapFold and mapFoldBack functions (#4038)
1 parent56fb8e3 commit3f667b5

File tree

1 file changed

+0
-19
lines changed

1 file changed

+0
-19
lines changed

‎src/absil/illib.fs‎

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -115,16 +115,6 @@ module Array =
115115
Array.length l1= Array.length l2&&
116116
Array.forall2 p l1 l2
117117

118-
letmapFold f s l=
119-
let mutableacc= s
120-
letn= Array.length l
121-
let mutableres= Array.zeroCreate n
122-
for i=0to n-1do
123-
leth',s'= f acc l.[i]
124-
res.[i]<- h';
125-
acc<- s'
126-
res, acc
127-
128118
letorder(eltOrder:IComparer<'T>)=
129119
{new IComparer<array<'T>>with
130120
member__.Compare(xs,ys)=
@@ -449,15 +439,6 @@ module List =
449439
match lwith
450440
|[]->false
451441
| h::t-> LanguagePrimitives.PhysicalEquality x h|| memq x t
452-
453-
// Not tail recursive
454-
let recmapFoldBack f l s=
455-
match lwith
456-
|[]->([],s)
457-
| h::t->
458-
lett',s= mapFoldBack f t s
459-
leth',s= f h s
460-
(h'::t', s)
461442

462443
letmapNth n f xs=
463444
let recmn i=function

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp