sml
Crack the caesar cipher using SML
I\'m supposed to crack the Caesar cipher. I have to declare a function crack : int * int -> int so that if (k, c) are of the type int, where k is the decrypted text and c the encrypted text, calli[详细]
2023-01-16 22:32 分类:问答How do you manipulate a list of tuples in SML?
I\'m new to SML, and I was wondering how to get an element in a list of tuples. For example, in the list [(\"abc\", 4), (\"def\", 6)], how could you extract \"abc\"? I\'ve tried[详细]
2023-01-16 18:28 分类:问答SML how to get while on char list to return int?
I\'m having a bit difficulty figuring out, how to get each of the processed chars back to an int value.[详细]
2023-01-16 11:19 分类:问答SML How to check variable type?
Is there any way to开发者_如何转开发 check/test the type of a variable? I want to use it like this:[详细]
2023-01-16 08:27 分类:问答Standard ML: Return different types
I need to return a different value based on the function passed into another function. So, given: fun inc x = x + 1;[详细]
2023-01-14 11:42 分类:问答Query on type expressions in ML
All, Here is the type expression which I need to convert to a ML expression: int -> (int*int -> \'a list) -> \'a list[详细]
2023-01-07 03:17 分类:问答Fast Standard ML compiler or bytecode interpreter, with read-eval-print loop, for Linux?
For use with a class I\'ll be teaching, I\'m looking for a fast compiler or bytecode interpreter for Standard ML.I\'m looking for fast compile times; any reasonable run time will do.Bonus if the compi[详细]
2023-01-06 10:44 分类:问答Creating an AST Tree in Java given another AST Tree
Currently, I\'m working on representing an AST tree I have, written in SML, in Java so I can traverse it in Java whenever I want.[详细]
2023-01-06 08:23 分类:问答Pattern matching with reals (Standard ML)
Doing this: fun test a 0.0 = \"good\" test a b = \"bad\"; results in an error, but if I change the 0.0 the error goes away. However, I n开发者_开发百科eed to match 0.0 and I\'m wondering if and h[详细]
2023-01-05 21:26 分类:问答Including two signatures, both with a 'type t' [Standard ML]
A contrived example: signature A = sig type t val x: t end signature B = sig type t val y: t end signature C = sig include A B end[详细]
2023-01-02 16:21 分类:问答