This is a summary of the "Learn You A Haskell" online book under http://learnyouahaskell.com/chapters.
- Haskell is a functional programming language.
// GSON can parse the data. | |
// | |
// Deserialization: | |
// Note there is a bug in GSON 2.3.1 that can cause it to StackOverflow when working with RealmObjects. | |
// To work around this, use the ExclusionStrategy below or downgrade to 1.7.1 | |
// See more here: https://code.google.com/p/google-gson/issues/detail?id=440 | |
// | |
// Serialization: | |
// <Type>RealmProxy objects are created by the Realm annotation processor. They are used to control | |
// access to the actual data instead of storing them in fields and it is therefore them we need to register a |
struct DictionaryTwoWay<S:Hashable,T:Hashable> : DictionaryLiteralConvertible | |
{ | |
// Literal convertible | |
typealias Key = S | |
typealias Value = T | |
// Real storage | |
private var st : [S : T] = [:] | |
private var ts : [T : S] = [:] | |
This is a summary of the "Learn You A Haskell" online book under http://learnyouahaskell.com/chapters.