Expanding # in sml

后端 未结 3 689
南笙
南笙 2020-12-06 12:57

Suppose I have a list in sml which is very big then sml shows a few of the entries and then starts showing # character.

Could someone tell me how could I view the wh

3条回答
  •  误落风尘
    2020-12-06 13:21

    Shorter version of Sabastian P.'s code:

    fun printList f ls =
        print ("[" ^ String.concatWith ", " (map f ls) ^ "]\n");
    

提交回复
热议问题