SML语法错误

时间:2017-06-18 16:55:18

标签: recursion functional-programming sml

逻辑:

  

eploy(list,constant)

fun eploy(xs, x1:int) =
        if null xs
        then (0) 
        else (x::xs') => x + x1*eploy(xs',x1)

eploy([1,2],4);

我写了以下代码:

'dbport' => '3306',

1 个答案:

答案 0 :(得分:2)

如果您想进行模式匹配,则需要使用<div data-content="FOR GIRLS" class="image"> <a class="wrapped__link" href="link_to_post">&nbsp;</a> <img src="path_to_image" alt="" /> </div>

div.image {
    position: relative;
}
.wrapped__link {
    position: absolute;
    z-index: 3;
    display: block;
    height: 100%;
    width: 100%;
    text-decoration: none;
    color: transparent;
}

您还可以使用子句将其合并到函数定义中:

case