sml
graph in SML of NJ
I need to write some function using ML, this function receives the list of the edges of the directed graph [(1,2),(1,3),(3,2)], it means directed edge from 1 to 2 and from 1 to 3..., and I receive als[详细]
2023-01-27 15:50 分类:问答nested local declarations in ML of NJ
hello everyone I have this snippet of the code: local helper(f, i, j) = local fun NTimesF(f, n:int) = if n = 1 then fn (x) => f(x)[详细]
2023-01-27 02:19 分类:问答error in the SML of NJ
hello everyone I have this snippet of the code: local fun NTimesF(f, n:int) = if n = 1 then fn (x) => f(x)[详细]
2023-01-27 02:16 分类:问答How to clear SML Buffer in Emacs when using SML mode.
I am using Emacs with SML mode. Sometimes I need to clean the SML buffer. How can I do t开发者_JS百科hat.Standard ML of New Jersey is a functional programming language that is a variant of ML. Usually[详细]
2023-01-26 13:41 分类:问答How do I iterate a list?
I am trying to do basi开发者_StackOverflowc list operations with SML. I want to extract each element of the list and append string to that element and add it back to the list.[详细]
2023-01-26 05:00 分类:问答Standard ML permutations
I am working on a function to the permutations for all values in a list. Here is what I have so far: //MY ROTATE FUNCTION[详细]
2023-01-23 20:05 分类:问答SML/ML Int to String conversion
I have this code: datatype \'a Tree = Empty | LEAF of \'a | NOD开发者_如何学运维E of (\'a Tree) list;[详细]
2023-01-23 17:59 分类:问答Standard ML binary tree type
I\'m studying ML in class and I\'ve run into a homework problem I am stuck on. I\'ve spent all day yesterday searching but made little progress and we did not talk about this in class, so I a开发者_JA[详细]
2023-01-23 08:21 分类:问答Saving the index from a real list
I\'m trying to declare a function sort : real list -> int list * real list that sorts the list using mergesort and also returns an int list with the original positions of the individual numbers pre[详细]
2023-01-22 22:14 分类:问答Extracting elements from list in SML
I\'m trying to extract the given elements from a list, but I get an Match exception? The goal is to make my function behave like:[详细]
2023-01-22 21:15 分类:问答