Author: Chris Lattner
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import 'dart:io'; | |
| import 'dart:isolate'; | |
| void main() async { | |
| Isolate.spawn<int>(foo, 1); | |
| Isolate.spawn<int>(foo, 2); | |
| Isolate.spawn<int>(foo, 3); | |
| Isolate.spawn<int>(foo, 4); | |
| Isolate.spawn<int>(foo, 5); | |
| sleep(Duration(seconds: 5)); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import "fmt" | |
| // fibonacci is a function that returns | |
| // a function that returns an int. | |
| func fibonacci() func() int { | |
| var( | |
| first = 0 | |
| second = 1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import java.util.stream.IntStream | |
| import kotlin.math.sqrt | |
| import kotlin.streams.toList | |
| /** | |
| * i: number of 3$ voucher | |
| * j: number of 5$ voucher | |
| * k: number of 10$ voucher | |
| */ | |
| data class VoucherSet(val i: Int, val j: Int, val k: Int) |
I hereby claim:
- I am hungqd on github.
- I am hungdang (https://keybase.io/hungdang) on keybase.
- I have a public key ASC20aDXxNHMjdj-dzAhty5mzPFY3RzQNpfVcajXdmmD5Qo
To claim this, I am signing this object: