Created
January 15, 2018 22:34
-
-
Save sunho/7d437c27682c4d0a79086e816531897f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
type Sequence []int | |
// Method for printing - sorts the elements before printing | |
func (s Sequence) String() string { | |
sort.IntSlice(s).Sort() | |
return fmt.Sprint([]int(s)) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment