Skip to content

Instantly share code, notes, and snippets.

View saidihasan's full-sized avatar
🌴
On vacation

saidihasan

🌴
On vacation
View GitHub Profile
// Copyright 2015 the Dart project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license
// that can be found in the LICENSE file.
void main() {
var kidsBooks = [{'Matilda': 'Roald Dahl',
'Green Eggs and Ham': 'Dr Seuss',
'Where the Wild Things Are': 'Maurice Sendak'}];
Map booksMap = new Map();
@saidihasan
saidihasan / kotlin-functional.kt
Created August 7, 2019 03:08
Kotlin Functional with accessing context inside the function
fun main() {
// TODO 2
val text = formatText("Kotlin is Awesome")
val lowerCase = text["lowerCase"]
val upperCase = text["upprintln"]
// TODO 3
println(lowerCase)