This website requires JavaScript.
Explore
Help
Register
Sign In
humza
/
sml-projects
Watch
1
Star
0
Fork
0
You've already forked sml-projects
Code
Issues
Pull Requests
Actions
Packages
Projects
Releases
Wiki
Activity
Files
5e9f118b1517debafa5f097de70cece45cf68805
sml-projects
/
shf
Humza Shahid
5e9f118b15
fixed two issues related to insertion in search-list.sml. First issue: in top level 'insert' function, we called 'insLeft' if new value is greater than first value on right, and we called 'insRight' in the opposite case; this is backwards. Second issue: in base cases of 'insLeft' and 'insRight', when we have reached the end of one side of the list, we used to return the same list we got back instead of adding the new value to this end of the list; this is now fixed.
2024-11-16 19:51:29 +00:00
1.3 MiB
Executable File
Raw
History
View Raw
Reference in New Issue
View Git Blame
Copy Permalink