Home
Blogs
Questions
Jobs
Monetize

Home

About Us

Blogs

Questions

Jobs

Monetize

Post Job

banner

Questions about symmetry

Read more about symmetry

python (65.2k questions)

javascript (44.3k questions)

reactjs (22.7k questions)

java (20.8k questions)

c# (17.4k questions)

html (16.3k questions)

r (13.7k questions)

android (13k questions)

Questions - symmetry

Symmetric Relation Recursive SML

Define a recursive predicate in ML isRelationSymmetric that accepts a relation r (represented as a list of tuples) and returns true if r is symmetric and false otherwise. Here is what I have so far. f...
test-img

jwolf

recursion

sml

ml

symmetry

Votes: 0

Answers: 2

Latest Answer

fun isRelationSymmetric(relation) = let fun testOne((a, b), []) = false | testOne((a, b), (c, d)::rest) = (b = c) andalso (a = d) orelse testOne((a, b), rest); fun test(...
test-img

jwolf

Posts

Questions

Blogs

Jobs

The ultimate platform for coders and IT specialists

About

  • Company
  • Support

  • Platform

  • Terms & Conditions
  • Privacy statement
  • Cookie policy
  • Cookie option
  • OnlyCoders © 2025  |  All rights reserved