Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 867d17d

Browse files
author
Td Kim
authored
Create PersonModel.swift
1 parent 72a6dee commit 867d17d

File tree

1 file changed

+60
-0
lines changed

1 file changed

+60
-0
lines changed

‎temp/PersonModel.swift

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
import Foundation
2+
3+
class PersonModel {
4+
5+
func personName(atIndex: Int) -> String {
6+
<#function body#>
7+
}
8+
9+
func personNumber(atIndex: Int) -> Int {
10+
<#function body#>
11+
}
12+
13+
func isMale(atIndex: Int) -> Bool {
14+
<#function body#>
15+
}
16+
17+
func personTeam(atIndex: Int) -> Int {
18+
<#function body#>
19+
}
20+
21+
func getPersonObejct(atIndex: Int) -> Dictionary<String, Any> {
22+
<#function body#>
23+
}
24+
25+
26+
//MARK: search functions
27+
func findPersonName(byNumber: Int) -> String {
28+
<#function body#>
29+
}
30+
31+
func findPersonNumber(byName: String) -> Int {
32+
<#function body#>
33+
}
34+
35+
//MARK: sort functions
36+
func sortByName() -> Array<[String:Any]> {
37+
38+
}
39+
func sortByNumber() -> Array<[String:Any]> {
40+
41+
}
42+
func sortByTeam() -> Array<[String:Any]> {
43+
44+
}
45+
46+
//MARK: plus mission
47+
func filter(byTeam: Int) -> Array<[String:Any]> {
48+
49+
}
50+
51+
func filter(byGender: Bool) -> Array<[String:Any]> {
52+
53+
}
54+
55+
func filterDistinctByLastName() -> Array<[String:Any]> {
56+
//김*, 이*
57+
}
58+
59+
60+
}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /