Robert avagiti

Greenhorn
+ Follow
since Mar 26, 2021
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Robert avagiti

Hi guys,

I'm currently trying to get a grip on Standard ML and are trying to understand what the following function does?

fun testfunction (a, nill) = false
| testfunction (a, b::bs) = a=b orelse testfunction (a,bs);

As I think it's taking two arguments, an element and a list with concatenated first element. if this fails it returns false otherwise checks if a are an element of the list?

Best
Robert
2 weeks ago