About the Standard ML category

Welcome to the Standard ML category. This is a space to ask any Standard ML questions, discuss exercises from the Exercism Standard ML track, or explore any other Standard ML-related conversations!

Can anybody help me with these 2 problems in SML?

  1. Write a function that recursively finds the sums of the squares of a list
    Type: 'a list → int
    For ex: sqsum [1,2,3] → 14

  2. Write a function that appends n elements in reverse order
    Type: 'a list * int → 'a list
    For ex: semrev ([1,2,3,4,5], 2) → [3,4,5,2,1]