Soumettre la recherche
Mettre en ligne
Scala map&tuple
•
0 j'aime
•
497 vues
Yuk SeungChan
Suivre
Scala - Map & Tuple
Lire moins
Lire la suite
Technologie
Signaler
Partager
Signaler
Partager
1 sur 16
Télécharger maintenant
Télécharger pour lire hors ligne
Recommandé
Race condition
Race condition
Yuk SeungChan
Edet 722 storyboard (academic enhancement)
Edet 722 storyboard (academic enhancement)
academic3
Openstack glance
Openstack glance
Yuk SeungChan
Scala Class&object
Scala Class&object
Yuk SeungChan
Operator Overloading In Scala
Operator Overloading In Scala
Joey Gibson
Real-Time Messaging Platform - Pusher & pubnub
Real-Time Messaging Platform - Pusher & pubnub
Yuk SeungChan
Stack frame
Stack frame
Yuk SeungChan
Function calling convention
Function calling convention
Yuk SeungChan
Recommandé
Race condition
Race condition
Yuk SeungChan
Edet 722 storyboard (academic enhancement)
Edet 722 storyboard (academic enhancement)
academic3
Openstack glance
Openstack glance
Yuk SeungChan
Scala Class&object
Scala Class&object
Yuk SeungChan
Operator Overloading In Scala
Operator Overloading In Scala
Joey Gibson
Real-Time Messaging Platform - Pusher & pubnub
Real-Time Messaging Platform - Pusher & pubnub
Yuk SeungChan
Stack frame
Stack frame
Yuk SeungChan
Function calling convention
Function calling convention
Yuk SeungChan
Continual Active Learning for Efficient Adaptation of Machine LearningModels ...
Continual Active Learning for Efficient Adaptation of Machine LearningModels ...
Kim Daeun
MOODv2 : Masked Image Modeling for Out-of-Distribution Detection
MOODv2 : Masked Image Modeling for Out-of-Distribution Detection
Kim Daeun
캐드앤그래픽스 2024년 5월호 목차
캐드앤그래픽스 2024년 5월호 목차
캐드앤그래픽스
Merge (Kitworks Team Study 이성수 발표자료 240426)
Merge (Kitworks Team Study 이성수 발표자료 240426)
Wonjun Hwang
A future that integrates LLMs and LAMs (Symposium)
A future that integrates LLMs and LAMs (Symposium)
Tae Young Lee
Console API (Kitworks Team Study 백혜인 발표자료)
Console API (Kitworks Team Study 백혜인 발표자료)
Wonjun Hwang
2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
Marius Sescu
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
Expeed Software
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
Pixeldarts
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
ThinkNow
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
marketingartwork
Skeleton Culture Code
Skeleton Culture Code
Skeleton Technologies
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
Neil Kimberley
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
contently
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
Albert Qian
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
Search Engine Journal
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
SpeakerHub
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
Clark Boyd
Getting into the tech field. what next
Getting into the tech field. what next
Tessa Mero
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Lily Ray
How to have difficult conversations
How to have difficult conversations
Rajiv Jayarajah, MAppComm, ACC
Contenu connexe
Dernier
Continual Active Learning for Efficient Adaptation of Machine LearningModels ...
Continual Active Learning for Efficient Adaptation of Machine LearningModels ...
Kim Daeun
MOODv2 : Masked Image Modeling for Out-of-Distribution Detection
MOODv2 : Masked Image Modeling for Out-of-Distribution Detection
Kim Daeun
캐드앤그래픽스 2024년 5월호 목차
캐드앤그래픽스 2024년 5월호 목차
캐드앤그래픽스
Merge (Kitworks Team Study 이성수 발표자료 240426)
Merge (Kitworks Team Study 이성수 발표자료 240426)
Wonjun Hwang
A future that integrates LLMs and LAMs (Symposium)
A future that integrates LLMs and LAMs (Symposium)
Tae Young Lee
Console API (Kitworks Team Study 백혜인 발표자료)
Console API (Kitworks Team Study 백혜인 발표자료)
Wonjun Hwang
Dernier
(6)
Continual Active Learning for Efficient Adaptation of Machine LearningModels ...
Continual Active Learning for Efficient Adaptation of Machine LearningModels ...
MOODv2 : Masked Image Modeling for Out-of-Distribution Detection
MOODv2 : Masked Image Modeling for Out-of-Distribution Detection
캐드앤그래픽스 2024년 5월호 목차
캐드앤그래픽스 2024년 5월호 목차
Merge (Kitworks Team Study 이성수 발표자료 240426)
Merge (Kitworks Team Study 이성수 발표자료 240426)
A future that integrates LLMs and LAMs (Symposium)
A future that integrates LLMs and LAMs (Symposium)
Console API (Kitworks Team Study 백혜인 발표자료)
Console API (Kitworks Team Study 백혜인 발표자료)
En vedette
2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
Marius Sescu
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
Expeed Software
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
Pixeldarts
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
ThinkNow
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
marketingartwork
Skeleton Culture Code
Skeleton Culture Code
Skeleton Technologies
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
Neil Kimberley
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
contently
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
Albert Qian
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
Search Engine Journal
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
SpeakerHub
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
Clark Boyd
Getting into the tech field. what next
Getting into the tech field. what next
Tessa Mero
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Lily Ray
How to have difficult conversations
How to have difficult conversations
Rajiv Jayarajah, MAppComm, ACC
Introduction to Data Science
Introduction to Data Science
Christy Abraham Joy
Time Management & Productivity - Best Practices
Time Management & Productivity - Best Practices
Vit Horky
The six step guide to practical project management
The six step guide to practical project management
MindGenius
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
RachelPearson36
En vedette
(20)
2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
Skeleton Culture Code
Skeleton Culture Code
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
Getting into the tech field. what next
Getting into the tech field. what next
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
How to have difficult conversations
How to have difficult conversations
Introduction to Data Science
Introduction to Data Science
Time Management & Productivity - Best Practices
Time Management & Productivity - Best Practices
The six step guide to practical project management
The six step guide to practical project management
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Scala map&tuple
1.
Scala Map & Tuple Yuk
SeungChan 13년 7월 27일 토요일
2.
Agenda • Map • Tuple •
Zipping 13년 7월 27일 토요일
3.
Map • Map • create,
get, update • iterate 13년 7월 27일 토요일
4.
Map •Mutable
5.
Map •import
6.
scala.collection.mutable.Map •Immutable
7.
Map •import
8.
scala.collection.immutable.Map •“쌍”의
9.
모음 •Key와
10.
11.
Value의
12.
타입이
13.
모두
14.
달라도
15.
됨 13년 7월 27일
토요일
16.
Map - create •val
17.
scores
18.
=
19.
Map(“Alice”-10,
20.
“BoB”-12) •val
21.
scores
22.
=
23.
Map((“Alice”,10),
24.
(“BoB”,12)) •val
25.
scores
26.
=
27.
scala.collection.mutable.MapMap(“Alice”-10,
28.
“BoB”-12) •val
29.
scores
30.
=
31.
new
32.
scala.collection.mutable.HashMap[String,
33.
Any]
34.
Map - get •Get •var
35.
aScore
36.
37.
=
38.
scores(“a”) •var
39.
aScore
40.
=
41.
scores.apply(“a”) •Check
42.
Method •var
43.
aScore
44.
=
45.
if
46.
(scores.contains.(“a”))
47.
scores(“a”)
48.
else
49.
0 •var
50.
aScore
51.
=
52.
scores.getOrElse(“a”,0) val
53.
scores
54.
=
55.
Map(“a”-1,
56.
“b”-2,
57.
“c”-3) 13년 7월 27일
토요일
58.
Map - update •scores(“a”)
59.
=
60.
2 •scores
61.
+=
62.
(“a”-10,
63.
“d”-4,
64.
“e”-5) •scores
65.
-=
66.
“a” •val
67.
newScores
68.
=
69.
scores
70.
+
71.
(“d”-4,
72.
“e”-5) val
73.
scores
74.
=
75.
Map(“a”-1,
76.
“b”-2,
77.
“c”-3) 13년 7월 27일
토요일
78.
Map - iterate •Default •for((k,v)
79.
-
80.
scores)
81.
process
82.
k
83.
and
84.
v
85.
•Reverse •for((k,v)
86.
-
87.
scores)
88.
yield(v,k)
89.
•Others •scores.keys
90.
=
91.
scores.keySet
92.
93.
=
94.
Iterable[String]
95.
=
96.
Set(a,
97.
b,
98.
c) val
99.
scores
100.
=
101.
Map(“a”-1,
102.
“b”-2,
103.
“c”-3) 13년 7월 27일
토요일
104.
Map - java
conversions •Scala
105.
-
106.
Java •import
107.
scala.collection.JavaConversions.mapAsScalaMap •val
108.
scores:
109.
scala.collection.mutable.Map[String,
110.
Int]
111.
=
112.
new
113.
java.util.TreeMap[String,
114.
Int] val
115.
scores
116.
=
117.
Map(“a”-1,
118.
“b”-2,
119.
“c”-3) 13년 7월 27일
토요일
120.
Tuple • Tuple • create,
get • iterate 13년 7월 27일 토요일
121.
Tuple •서로
122.
다른
123.
타입의
124.
값들을
125.
가진
126.
집합 •시작
127.
위치가
128.
1 13년 7월 27일
토요일
129.
Map - create •var
130.
tuple
131.
=
132.
(1,
133.
3.14,
134.
“SoMa”) •val
135.
tuple
136.
=
137.
(Map(a-1,b-2),
138.
123) 13년 7월 27일
토요일
139.
Map - get •Get •tuple._1
140.
=
141.
1 •tuple._2
142.
=
143.
3.14 val
144.
tuple
145.
=
146.
(1,
147.
3.14,
148.
“SoMa”) 13년 7월 27일
토요일
149.
Zipping • 값들을 묶어서
한 번에 처리하기 13년 7월 27일 토요일
150.
Zipping - usage •
val symbols = Array(““,“-”,“”) • val counts = Array(2, 10, 2) • var pairs = symbols.zip(counts) = Array[(String, Int)] = Array((,2), (-,10), (,2)) • for((s,n) - c) print(s*n) = ---------- 13년 7월 27일 토요일
151.
Java개발자를 위한.. • http://docs.scala-lang.org/ko/tutorials/scala- for-java-programmers.html 13년
7월 27일 토요일
Télécharger maintenant