Skip to content

Commit

Permalink
Use incf
Browse files Browse the repository at this point in the history
  • Loading branch information
WyattBlue committed Aug 17, 2023
1 parent ac625ac commit 5a518fc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions resources/scripts/maxcut.pal
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env auto-editor palet

(define (mut-remove-large arr lim replace with)
(define (remove-large! arr lim replace with)
(define start-p 0)
(define active #f)
(define j 0)
Expand All @@ -22,19 +22,19 @@
(set! active #f)
)
)
(set! j (add1 j))
(incf j)
)
)


(define (maxclip oarr min)
(define arr (array-copy oarr))
(mut-remove-large arr min 1 0)
(remove-large! arr min 1 0)
arr
)
(define (maxcut oarr min)
(define arr (array-copy oarr))
(mut-remove-large arr min 0 1)
(remove-large! arr min 0 1)
arr
)

Expand Down

0 comments on commit 5a518fc

Please sign in to comment.