It's not hard to understand the meaning of this sentence but I just want to
know which function the "と" serves in this case.
CC BY-SA 3.0
2014-12-30T01:50:53.640
21076
2014-12-30T02:17:05.853
2014-12-30T02:02:49.713
8032
8032
question
grammar
What's the function of "と" in "海に行きたいといつしか話した"?
> 「海に行きたい」と、(いつしか)話した

The と is a quotative particle.
CC BY-SA 3.0
2014-12-30T02:17:05.853
21077
2014-12-30T02:17:05.853
21076
answer