목록Programming Language (1)
뚝딱뚝딱 블로그
Standard ML Simple grammar for assignment
1. Simple grammar no unary > ~10 means -10 / > div ex) 47 div 10; % > mod ex) 37 mod 10; not > not and > andalso or > orelse Comment start with (* end with *) 2. List The Empty List [] or nil Head and Tail val L = [2,3,4]; hd(L); > val it = 2 : int tl(L); > val it = [3,4] : int list val M = [5]; hd(M); > val it = 5 : int tl(M); > val it = [] : int list Concatenation [1,2] @ [3,4]; > val it = [1,..
Programming Language
2021. 3. 5. 14:50